Skip to content

[JUnit StatusBar] Shows wrong progress information when the same test is executed multiple times #49

@rherrmann

Description

@rherrmann

Even though this is a weird test suite setup, I've seen this in the wild:

@RunWith(Suite.class)
@SuiteClasses({ SubTestSuite.class, FooTest.class })
public class MasterTestSuite {
}
@RunWith(Suite.class)
@SuiteClasses({ FooTest.class })
public class SubTestSuite {

}
public class FooTest {
    @Test
    public void testSomething() {
        fail("Not yet implemented");
    }
}

Running the MasterTestSuite will execute testSomething twice. The JUnit progress meter, however, will show 1 / 2, indicating the one of two tests have been executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions