How to ignore a test within the JUnit test method itself

Posted by Benju on Stack Overflow See other posts from Stack Overflow or by Benju
Published on 2010-05-05T17:38:11Z Indexed on 2010/05/05 18:38 UTC
Read the original article Hit count: 257

We have a number of integration tests that fail when our staging server goes down for weekly maintenance. When the staging server is down we send a specific response that I could detect in my integration tests. When I get this response instead of failing the tests I'm wondering if it is possible to skip/ignore that test even though it has started running. This would keep our test reports a bit cleaner.

Does anybody have suggestions?

© Stack Overflow or respective owner

Related posts about junit

Related posts about continuous-integration