Skip to content

Commit b322ff5

Browse files
committed
Merge branch 'RM-3340-bats-test-reports' into 'master'
RM-3340: added bats test reports See merge request cdoc2/cdoc2-java-ref-impl!38
2 parents a8cc694 + 3399c55 commit b322ff5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ test:
1313
- cd test/bats
1414
- source install_bats.sh
1515
- source variables.sh
16-
- $BATS_HOME/bats-core/bin/bats cdoc2_tests.bats
16+
- $BATS_HOME/bats-core/bin/bats --gather-test-outputs-in target/reports -x --report-formatter junit --output target/ cdoc2_tests.bats
17+
- 'for file in target/reports/*; do echo "## $file ##" >> target/bats-test.log; cat "$file" >> target/bats-test.log; done'
1718
coverage: /Total \d+\.\d+ %/
1819
artifacts:
1920
when: always
2021
reports:
2122
junit:
2223
- "**/target/surefire-reports/*.xml"
24+
- "**/target/report.xml"
2325
paths:
2426
- "**/target/site/jacoco"
27+
- "**/target/bats-test.log"
2528
rules:
2629
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
2730
when: on_success

0 commit comments

Comments
 (0)