nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01187
Re: [Bug 655882] [NEW] Make CategoryAttribute inherited
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
<655882@xxxxxxxxxxxxxxxxxx> 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.
References