Ignore test cases in Junit

Other topics

Ignore test case in Junit

  1. Go to the test method you want to ignore
  2. Before the @Test annotation, enter @Ignore
  3. 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.