-
Notifications
You must be signed in to change notification settings - Fork 100
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
Improved test runtime when probe invoker initialization failures occur [PAXEXAM-653] #761
Comments
Ion Savin commented The exception thrown when trying to retrieve the non-existing service:
|
Toni Menzel commented Sounds good too me. Harald Wellmann whats the OPS4J practice these days? Just accept his pull request or let him merge it in himself like "in the old days of OPS4J".. Just curious since its been a looooong time for me since my days over here 😉 |
Harald Wellmann commented The issue descriptions smells of misconfiguration or an unintended misuse. I don't see a case where It's not clear which problem the pull request is trying to solve, and there is no test case, so this is not ready to be merged. |
Toni Menzel commented Ion Savin: As described in the pull request, a test would be good.. |
Ion Savin commented Harald Wellmann, Toni Menzel, here is a sample project ilustrating the problem (I don't think a test case is appropriate in this case as the pass condition would be time-based): In the sample project the tests fail because of a dependency missing from the container (in practice it could be missing for whatever reason, not necessarily because of wrong |
Ion Savin commented Hi guys, any update on this? Thanks! |
Ion Savin created PAXEXAM-653
When the JUnit4ProbeInvoker initialization fails inside the container the driver will still try to execute the probe method, it will fail to find the corresponding ProbeInvoker service inside the container and will eventually timeout (after 2 minutes per test method).
Ran into this problem when the test class extends another class which is contained in a bundle dependency which fails to install. Then the ProbeInvoker is initialized the base class is not found and a NoClassDefFound exception is thrown and the corresponding probe invoker service is no longer registered.
The problem with this behavior is that the test runtime is 2min x number_of_test_requiring_missing_dep.
To improve the runtime a substitute ProbeInvoker is introduced which will throw the original exception/error when the probe is invoked.
Affects: 4.2.0
Votes: 0, Watches: 4
The text was updated successfully, but these errors were encountered: