Hi There,
How can we remove from the NCrunch Tests window the failed test with the NUnit Ignore attribute?
Thanks,
Alberto
Build/Test Issues
Hiding NUnit unit test with the Ignore attribute
Started by devdept on 2,307 views
Remco NCrunch Developer
#13134
24 Feb 2019 21:02 UTC
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.
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()
{
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()
{
Remco NCrunch Developer
#13140
26 Feb 2019 00:18 UTC
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.