I ran into a problem sometime in the last 8-12 months where Test Runner stopped detecting and running tests. It's only now that I've managed to duplicate the issue with sample code.
In the attached solution there is a basic system to support the tests required and two test projects
- MSTestApi.Tests - using the MS Test framework
- TestApi.Tests - using the xUnit framework
There are two main test classes in each
- AuditTestServiceTests
- TestServiceTests
The MS Test project has additional classes to illustrate the problem. If you run the tests in Test Runner for the solution attached as is you'll get the following output
If you open the AuditTestServiceTests class in the MSTestApi.Tests project and uncomment the AuditTest_BreaksTestDetection test and rerun the test in Test Runner you get the following
Only tests in the MSTestApi.Tests project that were sequenced before the uncommented test are now discovered and run. The xUnit project runs as expected. Using Visual Studio's Test Explorer finds and runs all tests in both projects regardless.
Chris,
Thank you for such a detailed report. I used your test project and reproduced the issue. We will work on a fix.