Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio does not run all tests when the test discovery failed on one test in a class #165

Closed
DerAlbertCom opened this issue Aug 9, 2019 · 2 comments

Comments

@DerAlbertCom
Copy link

DerAlbertCom commented Aug 9, 2019

Visual Studio Test Runner does not run all xUnit Tests when the test discovery throws an exception. I filed this also under: microsoft/vstest#2122

Steps to reproduce

Checkout the repository https://github.com/DerAlbertCom/MisbehavingUnittestRunners it in Visual Studio. More details why the problem occurs is also there.

Expected behavior

At least the exception within the test discovery shows up. And not silently not run the test without any reason. Also excepting to show a skip reason in the test runner.

Actual behavior

Test withing Visual Studio 2019 16.2
Wrong behavior.
In the sample repository are 6 Unit Test, 2 of are not run without any hint because of an exception within the test discovery on one test.

@DerAlbertCom
Copy link
Author

In microsoft/vstest#2123 is mentioned that the test adapter seems to capture the exception during discovery, because of that the Test2 and Test3 are not run and lost.

@DerAlbertCom
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant