Sachin Handiekar

Sachin Handiekar


September 2015
M T W T F S S
« Aug    
 123456
78910111213
14151617181920
21222324252627
282930  

Categories


Conditionally ignoring tests in JUnit

Sachin HandiekarSachin Handiekar
We might require to ignore a jUnit test based on a certain condition. jUnit just comes up with a @Ignore annotation which can be used to ignore the test.

We can use the below code to check if the condition has been met or not to ignore a test.

Reference :

http://stackoverflow.com/questions/1689242/conditionally-ignoring-tests-in-junit-4

Comments 0
There are currently no comments.

Leave a Reply