Skip to content

Consider adopting JUnit 5.13's DiscoveryIssue-reporting mechanism #2987

Open
@marcphilipp

Description

@marcphilipp

🤔 What's the problem you're trying to solve?

As @mpkorstanje pointed out in junit-team/junit5#4380 (review) there are use cases for the Cucumber JUnit engine to report warnings/errors encountered during test discovery.

✨ What's your proposed solution?

JUnit 5.13 will introduce a new mechanism for reporting issues encountered during discovery. They can have different severities. By default, any error will cause the engine descriptor to be reported as failed during test execution with a DiscoveryIssueException listing the critical discovery issues. Non-critical issues are logged. The critical severity level is configurable. Please see the JUnit User Guide for more info.

For example, in JUnit Jupiter, validations are now in place that report invalid test methods that won't get executed to avoid such issues from going unnoticed.

⛏ Have you considered any alternatives or workarounds?

No response

📚 Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions