-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prune stack traces produced by failing tests #3247
Closed
4 tasks done
Comments
juliette-derancourt
added a commit
that referenced
this issue
Apr 25, 2023
Resolves #3247 Co-authored-by: Christian Stein <sormuras@gmail.com>
juliette-derancourt
added a commit
that referenced
this issue
Apr 28, 2023
Resolves #3247 Co-authored-by: Christian Stein <sormuras@gmail.com>
6 tasks
juliette-derancourt
added a commit
that referenced
this issue
Apr 28, 2023
Resolves #3247 Co-authored-by: Christian Stein <sormuras@gmail.com>
juliette-derancourt
added a commit
that referenced
this issue
Apr 29, 2023
Resolves #3247 Co-authored-by: Christian Stein <sormuras@gmail.com>
juliette-derancourt
added a commit
that referenced
this issue
May 8, 2023
This commit introduces stack trace pruning, in order to make the stack traces produced by failing tests more concise and readable. This is an opt-out feature that can be enabled or disabled with the `junit.platform.stacktrace.pruning.enabled` configuration property, and configured by providing a pattern to `junit.platform.stacktrace.pruning.pattern`. Resolves #3247 Co-authored-by: Christian Stein <sormuras@gmail.com>
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a test fails, the outcome is a big stack trace containing a lot of internal JUnit/Java calls.
Since this is rarely interesting for the end user, we should prune this to keep only relevant assertion messages.
See related post found by @sormuras on Stackoverflow.
Deliverables
This pruning mechanism should:
org.junit
,java
, andjdk
packages by default (with the exception of JupiterAssertions
andAssumptions
calls)junit.platform.execution.listeners.deactivate
property)The text was updated successfully, but these errors were encountered: