nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02902
[Bug 1045646] Re: SetupFixture methods are executed even if no tests from their namespace are selected to run
Although this is currently by design, it could be changed in NUnit 3.0.
I've re-directed this bug to that project and I'll start a discussion
about the issue on the nunit-discuss list. If you're not already a
member, you may wish to join it in order to participate.
** Project changed: nunitv2 => nunit-3.0
--
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 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/nunit-3.0/+bug/1045646/+subscriptions
References