Commit 310a343a authored by Cédric OLIVIER's avatar Cédric OLIVIER Committed by Pierre Smeyers
Browse files

fix: bats report output

parent df727abf
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -246,19 +246,21 @@ bash-bats:
  image:
    name: "$BASH_BATS_IMAGE"
    entrypoint: [""]
  variables:
    BATS_REPORT_FILENAME: bash-bats.xunit.xml
  script:
    - install_bats_libs
    - 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:
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
    expire_in: 1 day
    when: always
    reports:
      junit:
        - "reports/*.bats.xml"
        - "reports/bash-bats.xunit.xml"
    paths:
      - "reports/*.bats.xml"
      - "reports/bash-bats.xunit.xml"
  rules:
    - if: '$BASH_BATS_ENABLED != "true"'
      when: never