Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rherrmann opened this issue Aug 31, 2016 · 1 comment
Labels

Comments

@rherrmann
Copy link
Owner

rherrmann commented Aug 31, 2016

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.

@rherrmann rherrmann added the bug label Aug 31, 2016
@rherrmann rherrmann changed the title [JUnit StatusBar] Show wrong progress information when the same test is executed multiple times [JUnit StatusBar] Shows wrong progress information when the same test is executed multiple times Sep 1, 2016
rherrmann added a commit that referenced this issue Sep 12, 2016
…n the same test is executed multiple times"

This reverts commit edb9f2f.

See also #51: [JUnit StatusBar] Number of executed tests is wrong when
shown while tests are running
@rherrmann
Copy link
Owner Author

Changes reverted with commit 37cfe7b

@rherrmann rherrmann reopened this Sep 12, 2016
@rherrmann rherrmann reopened this Sep 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant