Reports when parent and child classes in a JUnit test hierarchy are annotated with @RunWith. It can lead to unexpected testing behavior.

Example:


  @RunWith(Suite.class)
  @SuiteClasses(MySuiteClass.class)
  public abstract Parent {
  }

  @RunWith(Parameterized.class)
  public MyTest {
  }

New in 2024.1