Inspectopedia
 
2024.3

JUnit test annotated with '@Ignore'/'@Disabled'

Warning
Code Style
New
Last modified: 03 December 2024

Reports usages of JUnit 4's @Ignore or JUnit 5's @Disabled annotations. It is considered a code smell to have tests annotated with these annotations for a long time, especially when no reason is specified.

Example:

Configure the inspection:

  • Use the Only report annotations without reason option to only report the cases when no reason is specified as the annotation's value attribute.