Skip to content

Commit

Permalink
bats_test: add junit report to test results
Browse files Browse the repository at this point in the history
  • Loading branch information
pjjw committed Nov 9, 2024
1 parent eb4c47f commit ae0e240
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/bats.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export BATS_LIB_PATH=$(
export BATS_TEST_TIMEOUT="$TEST_TIMEOUT"
export BATS_TMPDIR="$TEST_TMPDIR"
exec $bats {tests} $@
ln -s "$XML_OUTPUT_FILE" "$(dirname "$XML_OUTPUT_FILE")/report.xml"
exec $bats {tests} --report-formatter junit --output "$(dirname $XML_OUTPUT_FILE)" "$@"
"""

_ENV_SET = """export {key}=\"{value}\""""
Expand Down

0 comments on commit ae0e240

Please sign in to comment.