Skip to content

Commit 645126a

Browse files
authored
feat: add json summary report (cypress-io#220)
1 parent 8112fdc commit 645126a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ workflows:
467467
store_artifacts: true
468468
post-steps:
469469
- run: cat examples/one-spec/.nyc_output/out.json
470+
- run: cat examples/one-spec/coverage/coverage-summary.json
470471
# store the created coverage report folder
471472
# you can click on it in the CircleCI UI
472473
# to see live static HTML site

common-utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function combineNycOptions({
2626

2727
const defaultNycOptions = {
2828
'report-dir': './coverage',
29-
reporter: ['lcov', 'clover', 'json'],
29+
reporter: ['lcov', 'clover', 'json', 'json-summary'],
3030
extension: ['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx'],
3131
excludeAfterRemap: false
3232
}

cypress/integration/combine-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Combine NYC options', () => {
1313
extends: '@istanbuljs/nyc-config-typescript',
1414
all: true,
1515
'report-dir': './coverage',
16-
reporter: ['lcov', 'clover', 'json'],
16+
reporter: ['lcov', 'clover', 'json', 'json-summary'],
1717
extension: ['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx'],
1818
excludeAfterRemap: false
1919
})

0 commit comments

Comments
 (0)