Skip to content

[Issue-3315] Restore console output fallback report name#3360

Open
officialasishkumar wants to merge 1 commit into
apache:masterfrom
officialasishkumar:fix/console-output-file-fallback
Open

[Issue-3315] Restore console output fallback report name#3360
officialasishkumar wants to merge 1 commit into
apache:masterfrom
officialasishkumar:fix/console-output-file-fallback

Conversation

@officialasishkumar
Copy link
Copy Markdown

Fixes #3315.

Console output events without a stack trace now use the active test set report name instead of falling back to null-output.txt. This restores the fallback report name when a test set starts while preserving stack-trace-based output attribution.

Verification:

  • /tmp/apache-maven-3.9.11/bin/mvn -pl maven-surefire-common -am -DskipTests -Dmaven.build.cache.enabled=false install
  • /tmp/apache-maven-3.9.11/bin/mvn -pl maven-surefire-common -Dtest=ConsoleOutputFileReporterTest -Drat.skip=true -Dcheckstyle.skip=true -Dspotless.apply.skip=true -Dspotless.check.skip=true -Danimal.sniffer.skip=true -Dmaven.build.cache.enabled=false test

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean install).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

Console output events without a stack trace should use the active test set report name instead of falling back to null-output.txt.

Set the fallback when a test set starts and cover the no-stack case with a regression test.
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.

ConsoleOutputFileReporter attributes output without stack trace to a default null report

1 participant