Skip to content

Commit a6ec92e

Browse files
author
Liuhaoran Huang
committed
store test result
1 parent 3b72de8 commit a6ec92e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.circleci/config.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,14 @@ jobs: # a collection of steps
2020
name: run test
2121
command: npm t
2222
environment:
23-
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
23+
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
24+
- store_artifacts: # special step to save test results as as artifact
25+
# Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
26+
path: junit.xml
27+
prefix: tests
28+
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
29+
path: coverage
30+
prefix: coverage
31+
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
32+
path: junit.xml
33+
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples

0 commit comments

Comments
 (0)