Well, in NUnit, you have the option to ignore tests using the ignore attribute:
[Test, Ignore("Test needs rewrite")]
Personally, however, there are two things that I do with such tests:
- Remove them if I don’t understand the test, or if the test is outdated / out of sync with current specifications
- Refactoring to the correct specification if the fix is trivial
Clearing of what you wrote, I would suspect that many of these unsuccessful tests are outdated and may not be relevant in the first place, so I think it would be nice to delete them.
It makes no sense to conduct a test that no one understands.
UPDATE : Oren Eini has a blog post that outlines most of what I feel about activating older, Tests:
:
:
- , . , : " ".
, , .