Skip to content

chore(ci): xunit integration #2628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,17 @@ functions:
-p 8100 \
-v \
--fault revoked
upload test results:
- command: attach.xunit_results
params:
file: src/xunit.xml
pre:
- func: fetch source
- func: prepare resources
- func: fix absolute paths
- func: make files executable
post:
- func: upload test results
- func: cleanup
tasks:
- name: test-latest-server
Expand Down
8 changes: 6 additions & 2 deletions .evergreen/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ functions:
UNIFIED=${UNIFIED} \
CA_FILE="$DRIVERS_TOOLS/.evergreen/ocsp/rsa/ca.pem" \
OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \
sh ${PROJECT_DIRECTORY}/.evergreen/run-ocsp-tests.sh
bash ${PROJECT_DIRECTORY}/.evergreen/run-ocsp-tests.sh

run-valid-ocsp-server:
- command: shell.exec
Expand Down Expand Up @@ -464,7 +464,10 @@ functions:
-v \
--fault revoked


upload test results:
- command: attach.xunit_results
params:
file: src/xunit.xml
pre:
- func: "fetch source"
- func: "prepare resources"
Expand All @@ -473,4 +476,5 @@ pre:
- func: "make files executable"

post:
- func: "upload test results"
- func: "cleanup"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ manual_tests/
docs/build
docs/Makefile

# xunit test output for CI
xunit.xml

# Directory for dbs
db

Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"sinon": "^4.3.0",
"sinon-chai": "^3.2.0",
"snappy": "^6.3.4",
"spec-xunit-file": "0.0.1-3",
"standard-version": "^4.4.0",
"util.promisify": "^1.0.1",
"worker-farm": "^1.5.0",
Expand Down
1 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
--timeout 60000
--file test/tools/runner
--ui test/tools/runner/metadata_ui.js
--reporter spec-xunit-file