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 
failure, Maven exits before running the second goal, so no report is generated
  *   If I do mvn 'surefire-report:report-only' 'test' , then the generated 
report is empty, because the tests haven't been run at the time the report was 
generated

I suppose I can do mvn 'test' ; result=$? ; mvn 'surefire-report:report-only' 
&& exit ${result} , which is a slight improvement on mvn 
'surefire-report:report' && mvn 'test' , but I'd really like a solution I can 
run as a single command without needing a shell wrapper.



On 2022/05/31 06:53:57 Slawomir Jaranowski wrote:
> 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

I don't see how that would help? These aren't Failsafe tests; they're Surefire 
tests. Unit tests, not integration.

Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a Service 
(SaaS) for business. Providing a safer and more useful place for your human 
generated data. Specializing in; Security, archiving and compliance. To find 
out more visit the Mimecast website.

Reply via email to