-
Notifications
You must be signed in to change notification settings - Fork 40
Visual Studio fails to run some tests #47
Comments
/cc @rynowak |
Dougbu, |
This has been fixed. |
Still having the same problem with Visual Studio 2017 Version 15.4.3. Close and restart Visual Studio and test run fine again. |
[ Probable answer included below !! ] Also having problem with Visual Studio 2017 Version 15.4.5.
Just noticed that I have these nuget dependencies: WebApiTest: .... and the project with the xunit (2.2.0) works, while the xunit (2.3.0) doesn't. Also might be a mismatch with the runner (both are 2.2.0). I just changed that failing one to be xunit (2.2.0) and the problem seems to have gone away. Not sure if this is the permanent solution, but it makes sense that it could be. |
For the silent skipping of tests, see microsoft/testfx#241 and microsoft/testfx#499 The "Test adapter sent back a result for an unknown test case" (that it executed!), I'll probably log an issue for that later as it shows for every test when I "Run All". |
"Run All" in the Razor repository does not execute all of the tests. This command leaves 50 to 150 tests in the "Not Run Tests" bucket. An "Unexpected error detected. Check the Tests Output pane for details." message displays in the VS status bar.
Not sure what distinguishes the "Not Tun" tests but hit this consistently (assuming tests show up in Text Explorer at all 😦 ). Repeated "Run All" invocations can be better or worse but never run everything.
The mentioned Output pane shows:
Suspect there should be as many lines in that block as not run tests.
Note selecting the "Not run tests" successfully executes the problematic tests. Haven't seen any errors reported when executing tests from the command line.
The text was updated successfully, but these errors were encountered: