Disabled Tests

Learn to ignore tests from executing using the @Disabled annotation.

Understanding @Disabled annotation

This annotation is used over classes and test methods to exclude them from execution.

If the annotation is applied to a class, all the test methods inside the class are disabled. If a specific method has this annotation, only the method is disabled.

Example

Get hands-on with 1400+ tech skills courses.