Explicit tests are automatically run in Visual Studio 2019 after upgrading from 3.17.0 to 4.0.0-alpha.1
See original GitHub issueHi,
About a year ago, I opened #658 that describes how tests marked with [Expicit] runs automatically in Visual Studio 2019. This was recently closed, while I was unable to follow it.
While the proposed fix (released as version 4.0.0-alpha.1) does fix the most common cases, it appears that the issue still remains with tests using [TestCaseSource].
- NUnit test adapter 4.0.0-alpha.1
- https://github.com/Stolpe/NUnitExplicitTest/tree/testcasesource
I did write this as a comment in the original issue at https://github.com/nunit/nunit3-vs-adapter/issues/658#issuecomment-689575251, but it appears that this has gone unnoticed (which I fully understand).
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Explicit nunit tests are automatically run in Visual Studio 2019
"This issue is caused by a change in behavior in Visual Studio 2019, in how the test execution methods are being called. The...
Read more >Adapter V4 Release Notes
NUnit3 Test Adapter for Visual Studio - Version 4.2.1 - Jan 21, 2022. This is a hotfix release for. 941 When running dotnet...
Read more >Why will Visual Studio 2019 will not run my unit tests?
On the top menu, navigating to Test > Options and disabling "Discover tests in real time from C# and Visual Basic .NET source...
Read more >Release notes — conda-build 0.0.0.dev0+placeholder ...
Update test matrix to run tests on all supported Python versions on Linux. ... When both script and an explicit file list are...
Read more >Package List
Package List . This is a list of things you can install using Spack. It is automatically generated based on the packages...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Here is the issue on Developer Community: https://developercommunity.visualstudio.com/content/problem/1189880/clean-solution-leaves-artifacts-from-old-version-o.html
My reproduction was unsuccessful but I noticed that I had NUnit 3.12.0 installed before when it failed 🤦♂️. Updating to NUnit 3.13.1 and running with the beta.1 version of the test adapter seems to work. Now the ignored tests and explicit tests are reporting a duration of 0.