Ignore test cases in Junit
Other topicsIgnore test case in Junit
- Go to the test method you want to ignore
- Before the
@Test
annotation, enter @Ignore
- optional: You can add description why are you ignoring this test method, something like:
@Ignore ("ignoring this test case for now")
a sample method would be:
@Ignore ("not going to test this method now")
@Test
public void test() {
assertfalse(true);
}
Contributors
Topic Id: 8640
Example Ids: 26977
This site is not affiliated with any of the contributors.