2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-27 17:43:27 +00:00

bats_test: add junit report to test results

This commit is contained in:
Peter Woodman 2024-11-08 19:07:11 -05:00
parent eb4c47f734
commit ae0e2405ae
No known key found for this signature in database
GPG key ID: E2BEB7BAA835F758

View file

@ -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}\""""