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: How to make Surefire output an HTML report but also set the return code based on test results?

2022-05-30 Thread Lasse Lindqvist
Hi. Would using *surefire-report:report-only* help you? ( https://maven.apache.org/surefire/maven-surefire-report-plugin/report-only-mojo.html ) ma 30. toukok. 2022 klo 23.37 Jordan MacDonald ( jordan.macdon...@votidetection.com) kirjoitti: > I'm trying to set up a Gitlab CI/CD pipeline for our D

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

2022-05-30 Thread Slawomir Jaranowski
Hi, Another idea - try use failsafe Execution can be: - failsafe:integration-test - surefire-report:failsafe-report-only - failsafe:verify Probably you should change of failsafe.includes and bind failsafe:integration-test to test phase wt., 31 maj 2022 o 06:01 Lasse Lindqvist napisaƂ(a):