Hi.
I have a unit test that is marked with the [ignore] attribute, and therefore NCrunch does not run it.
However, it would like to be able to run it manually.
With Resharper it is possible to manually run the test eventhough the [ignore] attribute is added,
by selecting the individual test and manually running it.
Is this possible with NCrunch?
Build/Test Issues
Making NCrunch run unit test with [ignore] attribute
Started by CThule on 6,556 views
Remco NCrunch Developer
#4476
02 Aug 2013 13:29 UTC
Hi,
Thanks for posting!
At the moment, this isn't possible with the Ignore attribute. Tests marked with this attribute are completely invisible to NCrunch. There is a task in the backlog to make tests with ExplicitAttribute manual only, although I can't promise at this stage when this will be implemented.
The best I can suggest for the time being is to create your own ignore attribute by using a custom category, i.e. [Category("Ignore")]. You can then configure the NCrunch engine modes to avoid executing the test automatically.
Cheers,
Remco
Thanks for posting!
At the moment, this isn't possible with the Ignore attribute. Tests marked with this attribute are completely invisible to NCrunch. There is a task in the backlog to make tests with ExplicitAttribute manual only, although I can't promise at this stage when this will be implemented.
The best I can suggest for the time being is to create your own ignore attribute by using a custom category, i.e. [Category("Ignore")]. You can then configure the NCrunch engine modes to avoid executing the test automatically.
Cheers,
Remco
Post a reply
Log in to reply.