void (@NotNull final T runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { Assert.assertThat("Wrong number of failed tests", runner.getFailedTestsCount(), equalTo(1)); final int expectedNumberOfTests = (runner.getCurrentRerunStep() == 0 ? 2 : 1); Assert.assertThat("Wrong number tests", runner.getAllTestsCount(), equalTo(expectedNumberOfTests)); if (runner.getCurrentRerunStep() == 1) { // Make sure derived tests are launched, not abstract Assert.assertEquals("Wrong tests after rerun", """ Test tree: [root](-) .rerun_derived(-) ..TestDerived(-) ...test_a(-) """, runner.getFormattedTestTree()); } }