Public bug reported:

In my DLL there are a few TestFixtures, divided to various categories with the 
Category attribute.
There's also one SetUpFixture that has a global SetUp method, and it's marked 
with Category("OneCategory").

When I run nunit (either console or GUI) with "/include=OneCategory",
the global SetUp method runs, followed by all tests from OneCategory.
This is great. However, when I run nunit with "/include=OtherCategory",
the same global SetUp method still runs - followed by all tests from
OtherCategory. Adding an explicit "/exclude=OneCategory" doesn't seem to
help either.

I'd expect that category inclusion and exclusion would also affect the
SetUpFixtures that run, not only TestFixtures that run.

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
Category inclusion/exclusion is ignored when it comes to SetUpFixtures
https://bugs.launchpad.net/bugs/616226
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:
In my DLL there are a few TestFixtures, divided to various categories with the 
Category attribute.
There's also one SetUpFixture that has a global SetUp method, and it's marked 
with Category("OneCategory").

When I run nunit (either console or GUI) with "/include=OneCategory", the 
global SetUp method runs, followed by all tests from OneCategory. This is 
great. However, when I run nunit with "/include=OtherCategory", the same global 
SetUp method still runs - followed by all tests from OtherCategory. Adding an 
explicit "/exclude=OneCategory" doesn't seem to help either.

I'd expect that category inclusion and exclusion would also affect the 
SetUpFixtures that run, not only TestFixtures that run.



_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to     : nunit-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~nunit-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to