Skip to content

Surefire report output creates the parent folder also when "Create pa… - #9372

Open
bamaer wants to merge 1 commit into
apache:mainfrom
bamaer:9356
Open

bamaer wants to merge 1 commit into
apache:mainfrom
bamaer:9356

Conversation

@bamaer

@bamaer bamaer commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

…rent folder" is off

Fixes #9356.

SurefireReportWriter always created the folder of the report file, so "Create parent folder" had no effect. The writer no longer creates folders. With the option off and the folder missing, the transform now fails with a message naming the folder and pointing to the option.

Tests: new SurefireReportOutputTest covers a missing folder with the option off and on, and an existing folder with the option off. SurefireReportWriterTest gets a test that the writer creates no folder. Both new tests fail without the fix.

Behaviour change: pipelines that have the option off and relied on the folder being created will now fail. The option is on by default, and the IT runner and the sample both keep it on.

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Run mvn clean install apache-rat:check to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i.
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable.

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.

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.

[Bug]: Surefire report output creates the parent folder also when "Create parent folder" is off

1 participant