Skip to content

Commit 3399c55

Browse files
committed
RM-3340: added bats test reports
1 parent 160cf3e commit 3399c55

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)