Replies: 2 comments 1 reply
This comment was marked as low quality.
This comment was marked as low quality.
-
No, there's none. A tweak to private void printThrowable(String indent, TestExecutionResult result) {
if (result.getThrowable().isEmpty() || _HIDE_STACKTRACE_) {
return;
}
...
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a Console Launcher based application that executes several tests against a remote device and checks its configuration parameters, failing with assertion errors if any of these parameters do not match the expected values.
The tree output of the console launcher provides already all the needed information to analyze failures, i.e., the ❌ next to the test name and the assertion error message. However, each test failure triggers also the printing of a stack trace, appended after the tree output.
Is there a way to hide the stack trace and keep only the tree output? I couldn't find any viable options at https://junit.org/junit5/docs/current/user-guide/#running-tests-console-launcher-options but maybe I overlooked something.
Beta Was this translation helpful? Give feedback.
All reactions