← Back to team overview

nunit-core team mailing list archive

[Bug 591622] [NEW] When SetUp method fails, no clear indication in GUI

 

Public bug reported:

I have a simple test fixture with a SetUp method that runs before each test method.
The SetUp method throws an exception, or calls Assert.Fail().

The GUI reports a failure in the test itself, and doesn't indicate in
any way that the failure actually came from the SetUp method. The only
way to find that out is to go to the file and line number mentioned in
the stack trace.

I should mention that this doesn't happen when the SetUp method is
defined in another class which is a SetUpFixture (in which case the GUI
says "Parent SetUp failed in MySetUpFixtureClass").

Using NUnit 2.5.5.10112.

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
When SetUp method fails, no clear indication in GUI
https://bugs.launchpad.net/bugs/591622
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: New

Bug description:
I have a simple test fixture with a SetUp method that runs before each test method.
The SetUp method throws an exception, or calls Assert.Fail().

The GUI reports a failure in the test itself, and doesn't indicate in any way that the failure actually came from the SetUp method. The only way to find that out is to go to the file and line number mentioned in the stack trace.

I should mention that this doesn't happen when the SetUp method is defined in another class which is a SetUpFixture (in which case the GUI says "Parent SetUp failed in MySetUpFixtureClass").

Using NUnit 2.5.5.10112.





Follow ups

References