bats_test: add junit report to test results (#982)

This commit is contained in:
peter woodman 2024-11-21 21:22:49 -05:00 committed by GitHub
parent 42c3ce7294
commit 84e72b762a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ export BATS_LIB_PATH=$(
export BATS_TEST_TIMEOUT="$TEST_TIMEOUT" export BATS_TEST_TIMEOUT="$TEST_TIMEOUT"
export BATS_TMPDIR="$TEST_TMPDIR" 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}\"""" _ENV_SET = """export {key}=\"{value}\""""