Commit cc34f740 authored by Leo's avatar Leo Committed by Achilleas Pipinellis

Add Java Maven example to junit_test_reports.md

parent 5fb044b0
......@@ -120,3 +120,19 @@ If you define multiple tasks of kind test, it will generate multiple directories
under `build/test-results/` directory.
To address all subdirectory at once, you can leverage regex matching by defining following
path: `build/test-results/test/TEST-*.xml`
### Java example with Maven
For parsing Surefire and Failsafe test resports use the following job in `.gitlab-ci.yml`:
```yaml
java:
stage: test
script:
- mvn verify
artifacts:
reports:
junit:
- target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment