Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring unnecessarily generated surefire-report #518

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

java-codehunger
Copy link

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.

Copy link
Collaborator

@Bert-R Bert-R left a comment

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.

@@ -33,4 +33,4 @@ jobs:
distribution: 'adopt'
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
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