Inspectopedia Help

Test class with no tests

Reports non-abstract test cases without any test methods.

Such test cases usually indicate unfinished code or could be a refactoring leftover that should be removed.

Example:

public class CrucialTest { @Before public void setUp() { System.out.println("setting up"); } }

Use the Ignore test cases which have superclasses with test methods option to ignore test cases which have super classes with test methods.

Inspection options

Option

Type

Default

Ignore test cases which have superclasses with test methods

Checkbox

true

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023