Skip to content
Snippets Groups Projects
Commit 310a343a authored by Cédric OLIVIER's avatar Cédric OLIVIER Committed by Pierre Smeyers
Browse files

fix: bats report output

parent df727abf
No related branches found
No related tags found
No related merge requests found
...@@ -246,19 +246,21 @@ bash-bats: ...@@ -246,19 +246,21 @@ bash-bats:
image: image:
name: "$BASH_BATS_IMAGE" name: "$BASH_BATS_IMAGE"
entrypoint: [""] entrypoint: [""]
variables:
BATS_REPORT_FILENAME: bash-bats.xunit.xml
script: script:
- install_bats_libs - install_bats_libs
- mkdir reports - mkdir reports
- bats --formatter junit --output reports $BASH_BATS_OPTS $BASH_BATS_TESTS - bats --report-formatter junit --output reports $BASH_BATS_OPTS $BASH_BATS_TESTS
artifacts: artifacts:
name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
expire_in: 1 day expire_in: 1 day
when: always when: always
reports: reports:
junit: junit:
- "reports/*.bats.xml" - "reports/bash-bats.xunit.xml"
paths: paths:
- "reports/*.bats.xml" - "reports/bash-bats.xunit.xml"
rules: rules:
- if: '$BASH_BATS_ENABLED != "true"' - if: '$BASH_BATS_ENABLED != "true"'
when: never when: never
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment