Priority
Normal
Type
Feature 
State
Fixed 
Assignee
Ilya Ryzhenkov 
Subsystem
Unit Testing 
Affected versions
Fixed in
Fixed in build
Next build 
Fixed in build
1151
  • Submitted by   Andrew Serebryansky
    2 years ago (22 Jan 2008 14:17)
  • Updated by Andrew Serebryansky
    13 months ago (08 Jan 2009 00:59)
  • Jira: RSRP-56323
    (history, comments)

RSRP-56323

Support for custom NUnit category attributes

0
Usually categories are used like this:
[TestFixture, Category("UnitTest")]

When used this way, ReSharper finds the unittest category, and places the test beneath this treenode. Great so far.

From NUnit version 2.4, custom attributes has been possible. A custom attribute is a subclass of CategoryAttribute, which make it possible to strong type your test categories like this:

[TestFixture, UnitTest]

by creating a subclass of CategoryAttribute called UnitTestAttribute. This work through the nunit console by specifying /include=UnitTest because NUnit uses the attributes name as parameter to the constructor of the CategoryAttribute class.


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments