← Back to team overview

nunit-core team mailing list archive

[Bug 1045646] [NEW] SetupFixture methods are executed even if no tests from their namespace are selected to run

 

Public bug reported:

We have test fixtures that are marked with the [Explicit] attribute.
Their namespace also contains a class with [SetupFixture] attribute and
[SetUp] and [TearDown] methods.

When we use the console runner it successfully ignores those tests, but
their SetupFixture code still runs.

We assumed that it would not run. It seems that this behavior is
undocumented anywhere.

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1045646

Title:
  SetupFixture methods are executed even if no tests from their
  namespace are selected to run

Status in NUnit V2 Test Framework:
  New

Bug description:
  We have test fixtures that are marked with the [Explicit] attribute.
  Their namespace also contains a class with [SetupFixture] attribute
  and [SetUp] and [TearDown] methods.

  When we use the console runner it successfully ignores those tests,
  but their SetupFixture code still runs.

  We assumed that it would not run. It seems that this behavior is
  undocumented anywhere.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1045646/+subscriptions


Follow ups

References