Skip to content

Commit 1bef3c4

Browse files
author
Liuhaoran Huang
committed
try add jest result
1 parent a6ec92e commit 1bef3c4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.circleci/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ 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: "./junit.xml"
24+
- run: # run coverage report
25+
name: post coverage
26+
command: npx circleci-coverage-github-reporter
2427
- store_artifacts: # special step to save test results as as artifact
2528
# Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
26-
path: junit.xml
29+
path: "./junit.xml"
2730
prefix: tests
2831
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
2932
path: coverage
3033
prefix: coverage
3134
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
32-
path: junit.xml
35+
path: "./junit.xml"
3336
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples

0 commit comments

Comments
 (0)