Skip to content

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

Open
@marcphilipp

Description

@marcphilipp

Is your feature request related to a problem?

Spock currently uses ErrorSpecNode to report exceptions encountered during test discovery at execution time.

Describe the solution you'd like

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 consistency with other test engines, it would be great if Spock could adopt this new mechanism. It would also allow removing ErrorSpecNode from the code base.

Describe alternatives you've considered

No response

Additional context

Maybe there are additional validations that are or could be performed that test authors should be made aware of with severity of INFO or WARNING?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions