nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00774
[Bug 548841] Re: [Explicit] does not get overridden if there is another category exclude
Postponing this bug to another release because it needs discussion.
As implemented, test cases act as if they "inherited" categories from
the fixture _unless_ they have some other category specified. We may
want to change this design, but it will take a bit of carefful thinking.
Let's do that on the nunit-discuss list.
** Changed in: nunitv2
Milestone: 2.5.6 => None
--
[Explicit] does not get overridden if there is another category exclude
https://bugs.launchpad.net/bugs/548841
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: Triaged
Bug description:
Steps to reproduce:
- Test code below ([1])
- nunit-console.exe <assemby.dll> /include=T /exclude=B"
Expected result:
- TestA() is executed
Actual result:
- No test is executed
Remarks
- Everything works as expected, if you remove the [Expected] attribute
[1] Test case
[TestFixture, Explicit, Category("T")]
public class Test
{
[Test, Category("A")]
public void TestA() { Console.WriteLine("-A-"); }
[Test, Category("B")]
public void TestB() { Console.WriteLine("-B-"); }
}
References