Closed
Description
openedon Aug 16, 2021
There are (few, but there are) cases in which I'd like to take a look at the callstack for a failed (as opposed errored) test. Mainly when using assertThrows. However I would like to have it shortened by default so that in the simplest case every line starting with at org.junit
is replaced with the ... X more lines
just like the end is shortened right now.
I'd be satisfied with a setting like "shorten lines matching this regex from the stack trace".
For example when assertThrows fails, because instead of ExpectedException I got DifferentException, I'd love the output to look like
org.opentest4j.AssertionFailedError: Unexpected exception type thrown ==> expected: <org.example.ExpectedException> but was: <org.example.DifferentException>
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:65)
... 70 more lines
Caused by: org.example.DifferentException: Message
at x
at y
at z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment