-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
DefaultLauncher should catch exceptions thrown by test engines #750
Comments
Thanks for raising the issue. I totally agree! The same applies to the execution phase as well. |
It could do that, but I consider that a separate topic. I have therefore updated this issue's description to reflect the deliverables. Feel free to create a new issue to propose concurrent test discovery across registered engines. |
Slated for M5 since we are trying to get M4 out the door as soon as possible. |
State: work-in-progress Addresses: #750
State: work-in-progress Addresses: #750
State: work-in-progress Addresses: #750
State: work-in-progress Addresses: #750
State: work-in-progress Addresses: #750
State: work-in-progress Addresses: #750
State: work-in-progress Addresses: #750
State: work-in-progress Addresses: #750
With #792 merged, an erroneous engine implementation doesn't any longer break the test plan execution. We should decide if a "simple warning" is enough for the end-user to take note of the failed engine. Perhaps the execution summary needs an update, like:
Updated issue description accordingly. |
I think we should go ahead and close this issue and address the topic of exception handling vs. logging in conjunction with #242 (thereby broadening the scope of #242 to cover the Platform as well). |
👍 |
I have moved the second deliverable to #242 and am therefore closing this issue. |
Overview
If a test engine throws an exception during discovery (see https://github.com/junit-team/junit5/blob/master/junit-platform-launcher/src/main/java/org/junit/platform/launcher/core/DefaultLauncher.java#L115) other engines won't be queried any more.
I think this is a bug because one test engine can thereby prevent others from working.
Deliverables
DefaultLauncher
should catch and report exceptions from engines and proceed with other engines.Additional Proposals
DefaultLauncher
could even collect discovery results concurrently.The text was updated successfully, but these errors were encountered: