When SetUp method fails, no clear indication in GUI

Bug #591622 reported by Yodan Tauber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Fix Released
Medium
Charlie Poole

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.

Related branches

Revision history for this message
Charlie Poole (charlie.poole) wrote : Re: [Bug 591622] [NEW] When SetUp method fails, no clear indication in GUI

Traditionally, NUnit SetUp and TearDown methods are treated as a part of the
test itself. Generally, we can tell that the failure was in SetUp by looking
at the location of the failure, i.e. the method name.

All that said, i agree that some clearer indication would be helpful.

Charlie

On Wed, Jun 9, 2010 at 10:02 AM, Yodan Tauber <email address hidden>wrote:

> 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.
>

Changed in nunitv2:
assignee: nobody → Charlie Poole (charlie.poole)
importance: Undecided → Medium
milestone: none → 2.5.6
status: New → In Progress
Changed in nunitv2:
status: In Progress → Fix Committed
Changed in nunitv2:
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.