← Back to team overview

nunit-core team mailing list archive

[Bug 655882] Re: Make CategoryAttribute inherited

 

Hi, I've run into this situation too.  I've found that the suggested
solution works out fine in Rsharper's NUnit testing framework, but with
the normal UI and command line nunit runners the inherited categories
are not picked up by the tool.  Any ideas why or where to look on this?

-- 
Make CategoryAttribute inherited
https://bugs.launchpad.net/bugs/655882
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.

Status in NUnit Test Framework: Triaged

Bug description:
The attribute Category (used for making tests as being in a particular category) should be inherited. This would allow setting up an abstract base class for a certain type of test, marking it as [Category("Whatever")], and having NUnit recognize that every other test that inherits from that class is also in category "Whatever".

As of 2.5.7.10213, CategoryAttribute is not inherited.





References