Build/Test Issues

Hiding NUnit unit test with the Ignore attribute

Started by devdept on 2,307 views

Hi There,

How can we remove from the NCrunch Tests window the failed test with the NUnit Ignore attribute?

Thanks,

Alberto
Hi Alberto,

NCrunch will not discover tests marked with an NUnit ignore attribute. If a test is marked with this correctly, it will never show in the tests window.
Thanks Remco,

Here is our syntax. Does it tell you something? As mentioned earlier we still have both MStest and NUnit enabled.

[NUnit.Framework.Ignore("Wrong curve in original Brep representing number 3")]
[TestCategory("Step"), TestMethod, NUnit.Framework.Test]
public void LayersTest()
{
Unless you have disabled the MSTest adapter, this test will still be discovered by MSTest. MSTest uses its own ignore attribute and does not consider the NUnit one. This means you'll need to ignore the test for both frameworks.

Post a reply

Log in to reply.