From 28143656b3fb6f81f1b486c0e454882f1d866dd8 Mon Sep 17 00:00:00 2001 From: Rishabh Chawla Date: Wed, 4 Nov 2020 17:29:52 +0530 Subject: [PATCH] chore: configure codecov reporting (#2032) --- .codecov.yml | 29 +++++++++++++++++------------ .nycrc | 12 +++++++----- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 9d693da8d71..d295391be7a 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,15 +1,20 @@ -comment: on +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: '50...100' parsers: - javascript: - enable_partials: yes + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no -coverage: - status: - project: - default: - threshold: 4% - if_not_found: success - patch: - default: - if_not_found: success +comment: + layout: 'reach,diff,flags,files,footer' + behavior: default + require_changes: no diff --git a/.nycrc b/.nycrc index 23943f67603..24934c6b2c5 100644 --- a/.nycrc +++ b/.nycrc @@ -1,10 +1,12 @@ { - "all": true, + "include": [ + "packages/**" + ], "reporter": [ - "html", - "json", - "cobertura" + "html", + "json", + "cobertura" ], "source-map": true, "exclude-after-remap": false -} \ No newline at end of file +}