junit-team / junit4

A programmer-oriented testing framework for Java.
https://junit.org/junit4
Eclipse Public License 1.0
8.51k stars 3.24k forks source link

ignoring unnecessarily generated surefire report #1761

Closed optimizing-ci-builds closed 1 year ago

optimizing-ci-builds commented 1 year ago

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 -DdisableXmlReport=true to the mvn command.

marcphilipp commented 1 year ago

Thanks for the suggestion but I don't think that will have a noticeable impact on build time but slightly complicate the build setup.