nunit3-vs-adapter icon indicating copy to clipboard operation
nunit3-vs-adapter copied to clipboard

Test adapter ignores fixtures that failed to be built

Open yaakov-h opened this issue 9 years ago • 4 comments

If an ITestBuilder for a given test method throws an exception, all tests in the same fixture disappear from the Visual Studio Test Explorer. There is no warning or error shown to the user.

See nunit/nunit/issues/1381 for further details.

yaakov-h avatar Mar 29 '16 05:03 yaakov-h

Thanks @yaakov-h We'll add an Error message in the output window for invalid fixtures for which tests can't be generated. I think that can be done without waiting for any improvements in how NUnit works.

CharliePoole avatar Mar 29 '16 05:03 CharliePoole

We are already giving an error message in the log but only when the test is run. That seems to be the best we can do without a complete reorgainization of test discovery, which currently only looks at test cases returned by NUnit, not fixtures. We should re-examine this when the NUnit fix is in.

CharliePoole avatar Apr 14 '16 21:04 CharliePoole

Added a test (currently #ifed out) to the demo class in order to see this problem.

CharliePoole avatar Apr 14 '16 22:04 CharliePoole

If the corresponding fix to #1381 is in NUnit 3.4, then we can get this into the 3.4 adapter release.

CharliePoole avatar Jun 01 '16 23:06 CharliePoole