From 7971b35890d85f95d488a7c00707f0846358e54e Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 29 Apr 2020 23:26:30 -0400 Subject: [PATCH 1/3] feat: add json-summary report --- common-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-utils.js b/common-utils.js index 43037b36..a5711c64 100644 --- a/common-utils.js +++ b/common-utils.js @@ -26,7 +26,7 @@ function combineNycOptions({ const defaultNycOptions = { 'report-dir': './coverage', - reporter: ['lcov', 'clover', 'json'], + reporter: ['lcov', 'clover', 'json', 'json-summary'], extension: ['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx'], excludeAfterRemap: false } From 34835ed2763e7bac5917bb8e2b38fc0b633b816a Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 29 Apr 2020 23:28:03 -0400 Subject: [PATCH 2/3] print coverage summary for example-one-spec --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a00aca9c..fe8958c5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -467,6 +467,7 @@ workflows: store_artifacts: true post-steps: - run: cat examples/one-spec/.nyc_output/out.json + - run: cat examples/one-spec/coverage/coverage-summary.json # store the created coverage report folder # you can click on it in the CircleCI UI # to see live static HTML site From 38509e321612edfb38e0737b7700c1afbb60e364 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 29 Apr 2020 23:33:50 -0400 Subject: [PATCH 3/3] update test --- cypress/integration/combine-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/combine-spec.js b/cypress/integration/combine-spec.js index 11af7f8d..5b13ac06 100644 --- a/cypress/integration/combine-spec.js +++ b/cypress/integration/combine-spec.js @@ -13,7 +13,7 @@ describe('Combine NYC options', () => { extends: '@istanbuljs/nyc-config-typescript', all: true, 'report-dir': './coverage', - reporter: ['lcov', 'clover', 'json'], + reporter: ['lcov', 'clover', 'json', 'json-summary'], extension: ['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx'], excludeAfterRemap: false })