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.
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
0 comments:
Post a Comment