Skip to content

Ignoring unnecessarily generated surefire-report#518

Open
java-codehunger wants to merge 1 commit into
obsidiandynamics:masterfrom
java-codehunger:optimization
Open

Ignoring unnecessarily generated surefire-report#518
java-codehunger wants to merge 1 commit into
obsidiandynamics:masterfrom
java-codehunger:optimization

Conversation

@java-codehunger

Copy link
Copy Markdown

In our analysis, we observe that this target/surefire-report/ directory is generated but not later used during the CI build. Hence, we propose to disable generating this directory to save runtime.
The generation of this directory can be disabled by simply adding -Dsurefire.useFile=false -DdisableXmlReport=true to the mvn command.

@Bert-R Bert-R left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement suggestion. However, one of the used flags is deprecated, see my other comment.

cache: maven
- name: Build with Maven
run: mvn -B verify --file pom.xml
run: mvn -B verify --file pom.xml -Dsurefire.useFile=false -DdisableXmlReport=true

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag disableXmlReport is deprecated, see the documentation.

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.

2 participants