Skip to content

Commit

Permalink
Merge branch 'RM-3340-bats-test-reports' into 'master'
Browse files Browse the repository at this point in the history
RM-3340: added bats test reports

See merge request cdoc2/cdoc2-java-ref-impl!38
  • Loading branch information
jann0k committed Aug 16, 2024
2 parents a8cc694 + 3399c55 commit b322ff5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ test:
- cd test/bats
- source install_bats.sh
- source variables.sh
- $BATS_HOME/bats-core/bin/bats cdoc2_tests.bats
- $BATS_HOME/bats-core/bin/bats --gather-test-outputs-in target/reports -x --report-formatter junit --output target/ cdoc2_tests.bats
- 'for file in target/reports/*; do echo "## $file ##" >> target/bats-test.log; cat "$file" >> target/bats-test.log; done'
coverage: /Total \d+\.\d+ %/
artifacts:
when: always
reports:
junit:
- "**/target/surefire-reports/*.xml"
- "**/target/report.xml"
paths:
- "**/target/site/jacoco"
- "**/target/bats-test.log"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: on_success
Expand Down

0 comments on commit b322ff5

Please sign in to comment.