Skip to content

Instantly share code, notes, and snippets.

@szydan
Created November 5, 2012 14:49
Show Gist options
  • Save szydan/4017536 to your computer and use it in GitHub Desktop.
Save szydan/4017536 to your computer and use it in GitHub Desktop.
how to conditionally ignore junit test
@Test
public void testAdd() {
Assume.assumeTrue(someCondition());
// eg Assume.assumeTrue(SystemUtils.IS_OS_UNIX);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment