Skip to content

Commit fe5ffa8

Browse files
committed
add file attribute to junit
1 parent 5bdd396 commit fe5ffa8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.circleci/config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383
export BATS_TEST_LIST=$(bats -l test | circleci tests split --split-by=timings | tr '\n' ' ')
8484
echo "This node will run ${BATS_TEST_LIST}"
8585
mkdir -p reports
86+
bats -l test > reports/list
87+
bats -l test | circleci tests split --split-by=timings > reports/mylist
8688
bats test | tee reports/test-report
8789
bash src/parse-taps.bash reports/test-report > reports/bats_junit_report.xml
8890
- pr-comment

src/parse-taps.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
head='<?xml version="1.0"?>\n<testsuite>'
44
foot='</testsuite>'
55

6-
test='<testcase name="%s" time="%d" />'
6+
test='<testcase file="%s" name="%s" time="%d" />'
77

88
parse_it(){
99
$line=$1

0 commit comments

Comments
 (0)