Skip to content

Message and stacktrace of MultipleFailuresError like from RetryExtension get lost #2175

@Vampire

Description

@Vampire

Describe the bug

If you have a @Retryed feature and it fails, the RetryExtension throws a MultipleFailuresError with message Retries exhausted.

Later on Spock unwraps this MultipleFailuresError and stores the individual errors in the error info collector.

And further later Spock wraps these multiple failures again in a fresh MultipleFailuresError thrown from ErrorInfoCollector#assertEmpty.

At this point the statcktrace where the original MultipleFailuresError is coming from is lost, as well as the original message, leaving no trace on what actually happened.

To Reproduce

Have a failing retried feature, look at the reported failure message and stacktrace, which also is not filtered. (Which is good in this case or nthing would be left to look at.)

Expected behavior

Original message and stacktrace preserved.

Actual behavior

Information is lost.

Java version

11

What operating system are you using

Other

Dependencies

Spock 2.3-groovy-4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions