Description
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
?