Make CategoryAttribute inherited
Bug #655882 reported by
Edward McTighe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Fix Released
|
Critical
|
Charlie Poole | ||
NUnit V2 |
Fix Released
|
Medium
|
Charlie Poole |
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(
As of 2.5.7.10213, CategoryAttribute is not inherited.
Related branches
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
Changed in nunit-3.0: | |
importance: | Medium → Critical |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Changed in nunit-3.0: | |
milestone: | none → 2.9.6 |
Changed in nunit-3.0: | |
assignee: | nobody → Charlie Poole (charlie.poole) |
Changed in nunit-3.0: | |
status: | Triaged → In Progress |
Changed in nunit-3.0: | |
status: | In Progress → Fix Committed |
Changed in nunit-3.0: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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 CategoryAttribu te... e.g.: InheritableCate gory.
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 "Whatever" )], and having NUnit recognize that every other test /bugs.launchpad .net/bugs/ 655882
<email address hidden> 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(
> 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:/
> You received this bug notification because you are a member of NUnit
> Developers, which is subscribed to NUnit V2.
>