Skip to content

Commit 73ded39

Browse files
authored
chore(ci): xunit integration
1 parent 2fa5c5f commit 73ded39

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

.evergreen/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,17 @@ functions:
412412
-p 8100 \
413413
-v \
414414
--fault revoked
415+
upload test results:
416+
- command: attach.xunit_results
417+
params:
418+
file: src/xunit.xml
415419
pre:
416420
- func: fetch source
417421
- func: prepare resources
418422
- func: fix absolute paths
419423
- func: make files executable
420424
post:
425+
- func: upload test results
421426
- func: cleanup
422427
tasks:
423428
- name: test-latest-server

.evergreen/config.yml.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ functions:
424424
UNIFIED=${UNIFIED} \
425425
CA_FILE="$DRIVERS_TOOLS/.evergreen/ocsp/rsa/ca.pem" \
426426
OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \
427-
sh ${PROJECT_DIRECTORY}/.evergreen/run-ocsp-tests.sh
427+
bash ${PROJECT_DIRECTORY}/.evergreen/run-ocsp-tests.sh
428428

429429
run-valid-ocsp-server:
430430
- command: shell.exec
@@ -464,7 +464,10 @@ functions:
464464
-v \
465465
--fault revoked
466466

467-
467+
upload test results:
468+
- command: attach.xunit_results
469+
params:
470+
file: src/xunit.xml
468471
pre:
469472
- func: "fetch source"
470473
- func: "prepare resources"
@@ -473,4 +476,5 @@ pre:
473476
- func: "make files executable"
474477

475478
post:
479+
- func: "upload test results"
476480
- func: "cleanup"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ manual_tests/
2929
docs/build
3030
docs/Makefile
3131

32+
# xunit test output for CI
33+
xunit.xml
34+
3235
# Directory for dbs
3336
db
3437

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"sinon": "^4.3.0",
7373
"sinon-chai": "^3.2.0",
7474
"snappy": "^6.3.4",
75+
"spec-xunit-file": "0.0.1-3",
7576
"standard-version": "^4.4.0",
7677
"util.promisify": "^1.0.1",
7778
"worker-farm": "^1.5.0",

test/mocha.opts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
--timeout 60000
33
--file test/tools/runner
44
--ui test/tools/runner/metadata_ui.js
5+
--reporter spec-xunit-file

0 commit comments

Comments
 (0)