Disable Tests
To disable a test make use of the @Ignore/@Disabled annotation (Junit 4/5).
JUnit will report all the ignored tests. If they are commented, or the test annotations are removed, there is no way to know which tests have been disabled.
Ignoring a Single Test
Junit 4
Junit 5
Ignoring a Full Suite
Just apply the annotation to the class.
Last updated
Was this helpful?