No display for TestFixtureSetUp/TearDown or SetUpFixture errors

Bug #1065225 reported by Charlie Poole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit Test Adapter
Fix Released
High
Charlie Poole

Bug Description

Since the test window only displays errors associated with Test Cases, a failure of a TestFixtureSetUp method is never reported. The same goes for TestFixtureTearDown, the setup or teardown associated with SetUpFixtures and any ActionAttributes that are not applied directly to a test case.

In the case of setup failures, we could reflect the same error on every included test case, but for teardown that's not possible, since the test has already been reported.

It's a major issue that requires some discussion to figure out the right way to handle it.

Related branches

Changed in nunit-vs-adapter:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Charlie Poole (charlie.poole) wrote :

This is postponed until Microsoft provides a way to report such errors.

Changed in nunit-vs-adapter:
importance: High → Wishlist
Revision history for this message
Charlie Poole (charlie.poole) wrote :

As an interim fix, we are now writing the error message for any TestFixtureSetup or TestFixtureTearDown failure in the test log, which displays in the output window of the IDE. This is not a fully satisfactory solution, but a better one will need to wait for VS to provide a better way to report these errors.

Changed in nunit-vs-adapter:
assignee: nobody → Charlie Poole (charlie.poole)
milestone: none → 0.93
importance: Wishlist → High
status: Triaged → Fix Committed
Changed in nunit-vs-adapter:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.