Skip to content

Conversation

@bickelj
Copy link
Contributor

@bickelj bickelj commented Jun 5, 2025

In order to show the exceptions in (hopefully) all cases, this commit simply prints 100+ lines of relevant sections of HTML to the console. For TestEngine with ID 'junit-jupiter' failed to discover tests this should be sufficient.

Many online posts suggestions to configure the testLogging block do not result in displaying an exception when Jupiter fails at running a test. It is also surprising to find no stdout or stderr report options out of the box. I guess when Gradle and Jupiter were coming of age, Jenkins was the CI/CD system de jour and made it trivial to see these reports.

Issue #48: Show test failure output in job

In order to show the exceptions in (hopefully) all cases, this commit
simply prints 100+ lines of relevant sections of HTML to the console.
For `TestEngine with ID 'junit-jupiter' failed to discover tests` this
should be sufficient.

Many online posts suggestions to configure the `testLogging` block do
not result in displaying an exception when Jupiter fails at running a
test. It is also surprising to find no `stdout` or `stderr` report
options out of the box. I guess when Gradle and Jupiter were coming of
age, Jenkins was the CI/CD system de jour and made it trivial to see
these reports.

Issue #48: Show test failure output in job
@bickelj bickelj requested a review from slifty June 5, 2025 16:17
@bickelj bickelj merged commit 0aaf86a into main Jun 5, 2025
2 checks passed
@bickelj bickelj deleted the print-catastrophic-test-failures-to-stdout branch June 5, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants