Ignoring works now great with NUnit 3 and NCrunch, however Category exclusion seems to be broken with NUnit 3.0 still (everything is fine and dandy when using NUnit 2.6.4).
For example applying a category on a class still executes it and even though I ignored all tests manually my CI Server running NCrunch Console (latest version 2.18.0.3) still runs them. I have no idea how to exclude them properly there.
Quote:
[Category("Slow")]
public class MyTests { ... }
For some tests I also have the same problem, but I am not sure because once I restarted NCrunch in VS they disappeared (but then again, those tests are just excluded because they are slow, most of them run fine with NCrunch, I just don't want them to run). I only noticed this for very long running tests because NCrunch timed out.
I created a little test project with nothing but 2 simple tests, one in the category Slow, which I excluded in the automatic test filter (DoesNotHaveCategory 'Slow'), but it still shows up and is executed:
Quote:
namespace TestNCrunchNUnit3
{
public class ProgramTests
{
[Test]
public void RunMePlease()
{
Assert.That(1 + 1, Is.EqualTo(2));
}
[Test, Category("Slow")]
public void DontRunMe()
{
Assert.That(1 + 1, Is.EqualTo(3));
}
}
}