-
Notifications
You must be signed in to change notification settings - Fork 253
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
TestMethod failures are masked by TestCleanup exceptions in the outcome. #58
Comments
Code that affects this change is at src\testadapter\execution\testmethodinfo.RunTestCleanupMethod(). |
This happens only when the TestMethod fails AND the TestCleanup method fails. |
Reopening this - This is both misleading and is a compat break from MSTest V1 which displays both the details. For instance with the below code
|
Customer are hitting this issue: Assembly load failures in |
I'd also like to add that when Debugging a single test in Visual Studio 2017, there is no exposure to the user that the Next thing you know an exception is thrown in (Thanks again for the help!) |
Enable logging also helps to find root cause,following blog post helps how to enable logging enable unit test execution logs |
Description
Failures in the TestMethod are masked by TestCleanup exceptions in the outcome.
Steps to reproduce
Expected behavior
An indication of the test method exception and stack trace should be shown in the outcome.
Actual behavior
Only the TestCleanup stack is shown.
The text was updated successfully, but these errors were encountered: