Derivitec / vscode-dotnet-adapter

MIT License
7 stars 8 forks source link

disable autorun not working #49

Open simsekahmett opened 3 years ago

simsekahmett commented 3 years ago

OS: macOS Catalina 10.15.7 Environment: VSCode1.52.1 Extensions:

I want to disable autorun for tests on VSCode startup. Following button does not work; image

.net Core Test Summary output

Loaded 223 test files
Added 181 tests to the test suite
    1 new test file
    1 cached test file
    0 test files updated since last cache

[2021-01-14T13:26:13.095Z] Waiting for Omnisharp to complete initialisation. This can take several minutes.
[2021-01-14T13:26:13.188Z] Searching for tests
[2021-01-14T13:26:14.954Z] Loading tests from 223 files
[2021-01-14T13:27:00.940Z] Omnisharp initialisation completed
[2021-01-14T13:29:38.841Z] Encountered errors in 222 files during loading.
[2021-01-14T13:29:38.842Z] Some of these errors were encountered by vstest. See ".NET Core Test Output" pane for details.
[2021-01-14T13:29:38.842Z] The following assemblies produced empty symbol files. If there are test methods in this project, try reloading.
file:///Users/idscan_mac/Documents/Scannet-Analytics/Scannet-Analytics/Tests/Scannet.Analytics.EndToEnd.Tests/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.CodeCoverage.Shim.dll
[2021-01-14T13:29:38.842Z] Loading tests complete 181 tests from 223 files; 1 new and 1 cached
[2021-01-14T13:29:38.847Z] Processing CodeLens data
[2021-01-14T13:29:39.504Z] CodeLens symbols updated

Tests are failing because the dependency projects haven't been loaded/builded yet.

hbenl commented 3 years ago

I think your tests aren't being run, they're only being loaded (i.e. the test definitions are discovered so that Test Explorer can show them in its tree view). See also here. What you want is a setting for this extension that disables automatically loading the tests, so they're only being loaded when you click the reload button in Test Explorer.