From 3399c5506c4011d49bd18fbcb9e57d685765ffc6 Mon Sep 17 00:00:00 2001 From: Mir Jalal Hashimli Date: Tue, 13 Aug 2024 11:31:48 +0300 Subject: [PATCH] RM-3340: added bats test reports --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a01b23b2..9ca12799 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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