OK, so the @Ignore annotation is good for marking that a test case shouldn\'t be run.
@Ignore
However, sometimes I want to ignore a test based on runtime inform
A quick note: Assume.assumeTrue(condition) ignores rest of the steps but passes the test. To fail the test, use org.junit.Assert.fail() inside the conditional statement. Works same like Assume.assumeTrue() but fails the test.
Assume.assumeTrue(condition)
org.junit.Assert.fail()
Assume.assumeTrue()