Skip to content

DefaultLauncher should catch exceptions thrown by test engines #750

Closed
@jlink

Description

@jlink

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.
    • This applies to both the discovery phase and execution phase.

Additional Proposals

  • DefaultLauncher could even collect discovery results concurrently.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions