Sometimes the deadline has arrived and you still have some failing tests. After a discussion with the dev team, you decide to deploy anyway and fix the bugs for the next release. You need to get the build server to ignore the tests.
One way is just to mark the test with the
1 2 3 4 5 6
After the weekend, everyone forgets about the ignored tests and they never get fixed.
Instead, I like to do this.
1 2 3 4 5 6 7
This is a fairly rare occurrence for my team, so the above approach is sufficient and works with all test frameworks. But if you want to go further Richard Slater shows how to create an NUnit attribute.