Skip to content

Commit 0af8e7c

Browse files
committed
Fixing how JUnit results are captured
1 parent 9bd6798 commit 0af8e7c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Jenkinsfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def runTests() {
1616
1717
cd ..
1818
rm -rf $WORKSPACE/*.xml || true
19-
./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-reports.xml -g \'logging|archivePath\' --invert || true
19+
./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-reports.xml -g \'logging\' --invert || true
2020
2121
// Turning these off temporarily
2222
// ./node_modules/.bin/gulp setupProxyTests || true
23-
// ./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic-proxy/lib/**/*.js --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-proxy-reports.xml -g \'logging|archivePath\' --invert || true
23+
// ./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic-proxy/lib/**/*.js --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-proxy-reports.xml -g \'logging\' --invert || true
2424
'''
2525
}
2626

@@ -91,7 +91,6 @@ def runE2ETests() {
9191
../node_modules/.bin/mocha -R xunit --timeout 60000 -R xunit "nodejs-ds-transactions.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-transactions-results.js.xml || true
9292
../node_modules/.bin/mocha -R xunit --timeout 60000 -R xunit "nodejs-ds-dynamic.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-dynamic-results.xml || true
9393
'''
94-
junit '**/*.xml'
9594
}
9695

9796
pipeline {
@@ -131,6 +130,7 @@ pipeline {
131130
}
132131
post {
133132
always {
133+
junit '**/*.xml'
134134
teardownAfterTests()
135135
}
136136
}
@@ -155,6 +155,7 @@ pipeline {
155155
// post {
156156
// always {
157157
// teardownAfterTests()
158+
// junit '**/*.xml'
158159
// }
159160
// }
160161
// }
@@ -174,6 +175,7 @@ pipeline {
174175
}
175176
post {
176177
always {
178+
junit '**/*.xml'
177179
teardownAfterTests()
178180
}
179181
}
@@ -194,6 +196,7 @@ pipeline {
194196
// }
195197
// post {
196198
// always {
199+
// junit '**/*.xml'
197200
// teardownAfterTests()
198201
// }
199202
// }

0 commit comments

Comments
 (0)