How to make Surefire output an HTML report but also set the return code based on test results?

2022-05-30 Thread Jordan MacDonald
I'm trying to set up a Gitlab CI/CD pipeline for our Dockerized Java app. The way this pipeline works is we have separate steps for building our Docker image and for running our unit tests. The unit test step is supposed to output an HTML test report which is uploaded as a job artifact, and also

RE: Re: How to make Surefire output an HTML report but also set the return code based on test results?

2022-06-01 Thread Jordan MacDonald
On 2022/05/31 04:01:21 Lasse Lindqvist wrote: > Hi. Would using *surefire-report:report-only* help you? ( > https://maven.apache.org/surefire/maven-surefire-report-plugin/report-only-mojo.html > ) I don't see how: * If I do mvn 'test' 'surefire-report:report-only' , then if there's a test fai