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

Any filter applied to the JUnitCore is honored the unit tests are invoker in the container [PAXEXAM-930] #1011

Open
ops4j-issues opened this issue Oct 11, 2019 · 0 comments

Comments

@ops4j-issues
Copy link

Nikolas Falco created PAXEXAM-930

We are using the latest beta 5.0 to obtain the support for Before/After Class.
When we want to run exactly a specific test method of a test suite from eclipse IDE for example we got that all test are executed. The same issue happens in maven when the rerun feature is enabled. The point is that when we got a failure all tests in the test suite are re-executed. This means increase build time and sometimes the failure of test flaky that was passed on the first run.

The root cause is that the list of filtered out methods are not passed when the OSGi service junit invoker is called.
Unfortunally when a filter (I mean a simple method descriptor filter) is applied to the JUnitCore instance it apply this filter internally saving the filtered list of descriptor that must be executed. This internal state is not accessible and this means is not possible to move forward to the OSGi service container.


Affects: 5.0.0, 4.13.1
Votes: 0, Watches: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant