Working on test reporting

This commit is contained in:
Jonathan Putney
2019-11-13 21:26:40 -05:00
parent 8b99b50c00
commit e8638cc416

View File

@@ -38,12 +38,12 @@ jobs:
- node_modules - node_modules
key: v1-dependencies-{{ checksum "package.json" }} key: v1-dependencies-{{ checksum "package.json" }}
- run: mkdir reports dist docs || true - run: mkdir reports dist docs test-results || true
# Run mocha # Run mocha
- run: - run:
name: npm test name: npm test
command: ./node_modules/.bin/nyc ./node_modules/.bin/mocha --require @babel/register --recursive --timeout=10000 --exit --reporter mocha-junit-reporter --reporter-options mochaFile=reports/mocha/test-results.xml command: ./node_modules/.bin/nyc ./node_modules/.bin/mocha --require @babel/register --recursive --timeout=10000 --exit --reporter mocha-junit-reporter --reporter-options mochaFile=test-results/mocha/results.xml
when: always when: always
# Run eslint # Run eslint
@@ -91,7 +91,7 @@ jobs:
# Upload results # Upload results
- store_test_results: - store_test_results:
path: ./reports/mocha/test-results.xml path: test-results
- store_artifacts: - store_artifacts:
path: ./reports/mocha/test-results.xml path: ./reports/mocha/test-results.xml