BusinessCentral.LinterCop icon indicating copy to clipboard operation
BusinessCentral.LinterCop copied to clipboard

Howto run test in VS Code?

Open Arthurvdv opened this issue 7 months ago • 9 comments

image

I'm probably missing something obvious, but how do I execute the test automation in VS Code? Or do I need to install an additional Test extension?

I've created an clean Windows VM with VS Code version v1.91.0 and these installed extensions

I'm also looking into integrating the test in the pipeline of GitHub, running the tests from the command line doesn't return the expected results.

image

dotnet test /p:FeatureFlags=#ManifestHelper

  Determining projects to restore...
  All projects are up-to-date for restore.
  BusinessCentral.LinterCop -> C:\DEMO\BusinessCentral.LinterCop\BusinessCentral.LinterCop\bin\Debug\netstandard2.1\BusinessCentral.LinterCop.dll
  BusinessCentral.LinterCop.Test -> C:\DEMO\BusinessCentral.LinterCop\BusinessCentral.LinterCop.Test\bin\Debug\net8.0\BusinessCentral.LinterCop.Test.dll
Test run for C:\DEMO\BusinessCentral.LinterCop\BusinessCentral.LinterCop.Test\bin\Debug\net8.0\BusinessCentral.LinterCop.Test.dll (.NETCoreApp,Version=v8.0)
Microsoft (R) Test Execution Command Line Tool Version 17.10.0 (x64)
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
No test is available in C:\DEMO\BusinessCentral.LinterCop\BusinessCentral.LinterCop.Test\bin\Debug\net8.0\BusinessCentral.LinterCop.Test.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

@christophstuber Can you share your setup or do you see anything I'm missing here?

Arthurvdv avatar Jul 09 '24 16:07 Arthurvdv