While there are some use patterns where you would want this, there are others where you would not. We can look into this, but first please try the following workaround first.
Derive your own attribute from CategoryAttribute... e.g.: InheritableCategory. Allow your attribute to be inherited. Use it on the base class Please let me know if this works for you. Charlie On Wed, Oct 6, 2010 at 11:20 AM, Edward McTighe <655...@bugs.launchpad.net> wrote: > Public bug reported: > > 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. > > ** Affects: nunitv2 > Importance: Undecided > Status: New > > > ** Tags: feature > > -- > Make CategoryAttribute inherited > https://bugs.launchpad.net/bugs/655882 > You received this bug notification because you are a member of NUnit > Developers, which is subscribed to NUnit V2. > -- Make CategoryAttribute inherited https://bugs.launchpad.net/bugs/655882 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: 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. _______________________________________________ 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