From c64afbc8e52082e8211a074b9e855f7ffdef2ade Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:12:23 +0530 Subject: [PATCH 01/25] run tests --- tests/build-newsroom-videos.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/build-newsroom-videos.test.js b/tests/build-newsroom-videos.test.js index 63f571466944..b2f69b914d7d 100644 --- a/tests/build-newsroom-videos.test.js +++ b/tests/build-newsroom-videos.test.js @@ -44,6 +44,7 @@ describe('buildNewsroomVideos', () => { const response = readFileSync(testFilePath, 'utf8'); expect(response).toEqual(expectedResult); expect(result).toEqual(expectedResult); + console.log("Hello World!") }); it('should handle fetch errors', async () => { From 837d0a6f75eeac7ec145fd85349ab0f3f2a35293 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:20:26 +0530 Subject: [PATCH 02/25] updated workflow --- .github/workflows/if-nodejs-pr-testing.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index f2b5f24a8317..821aaee188c7 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -78,8 +78,5 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - files: ./coverage/lcov.info - flags: unittests - name: codecov-umbrella token: 25358ea8-8f8c-4ee1-aff3-282914082378 verbose: true \ No newline at end of file From fc6a078e62e147f762d6eea066f475689b747c35 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:28:36 +0530 Subject: [PATCH 03/25] uyoadt --- .github/workflows/if-nodejs-pr-testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 821aaee188c7..cd72e0f44870 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -77,6 +77,6 @@ jobs: name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: + files: ./coverage/lcov.info fail_ci_if_error: true - token: 25358ea8-8f8c-4ee1-aff3-282914082378 verbose: true \ No newline at end of file From 06f1ad7f2475391ca71d19cc37127395a072706d Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:37:33 +0530 Subject: [PATCH 04/25] defeg --- .github/workflows/if-nodejs-pr-testing.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index cd72e0f44870..310fd74149f9 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -77,6 +77,8 @@ jobs: name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: - files: ./coverage/lcov.info fail_ci_if_error: true + files: ./coverage/lcov.info + flags: "Unit Tests for Scripts" + name: codecov-umbrella verbose: true \ No newline at end of file From 955cc9ba57439c16dcae1fff0cb7af7ba0112684 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:41:06 +0530 Subject: [PATCH 05/25] upadted workdlwo --- .github/workflows/if-nodejs-pr-testing.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 310fd74149f9..84784197fa84 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -81,4 +81,5 @@ jobs: files: ./coverage/lcov.info flags: "Unit Tests for Scripts" name: codecov-umbrella + token: 25358ea8-8f8c-4ee1-aff3-282914082378 verbose: true \ No newline at end of file From 969fee1bae3af4f19c07a49ad70c6de99d73b05b Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:47:49 +0530 Subject: [PATCH 06/25] codecov config --- .codecov.yml | 31 ++++++++++++++++++++++ .github/workflows/if-nodejs-pr-testing.yml | 2 -- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000000..0c90c0f80d5f --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,31 @@ +coverage: + status: + project: + default: + # basic + target: auto + threshold: null + base: auto + # advanced + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + only_pulls: false + flags: null + paths: null + patch: + default: + # basic + target: auto + threshold: null + base: auto + # advanced + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + # the main change: + only_pulls: true + flags: null + paths: null \ No newline at end of file diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 84784197fa84..d956d6df45d6 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -79,7 +79,5 @@ jobs: with: fail_ci_if_error: true files: ./coverage/lcov.info - flags: "Unit Tests for Scripts" - name: codecov-umbrella token: 25358ea8-8f8c-4ee1-aff3-282914082378 verbose: true \ No newline at end of file From 094897343832769475cbc99c2f2954138ff42699 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:53:20 +0530 Subject: [PATCH 07/25] upate codecov config --- .codecov.yml | 39 +++++++++------------- .github/workflows/if-nodejs-pr-testing.yml | 6 ++-- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 0c90c0f80d5f..05dd51d5cf1a 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -2,30 +2,23 @@ coverage: status: project: default: - # basic target: auto - threshold: null - base: auto - # advanced - branches: null - if_no_uploads: error - if_not_found: success - if_ci_failed: error - only_pulls: false - flags: null - paths: null patch: default: - # basic target: auto - threshold: null - base: auto - # advanced - branches: null - if_no_uploads: error - if_not_found: success - if_ci_failed: error - # the main change: - only_pulls: true - flags: null - paths: null \ No newline at end of file + + precision: 2 + round: down + range: "70...100" + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no + +comment: + layout: "header, diff, files, footer" + behavior: default diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index d956d6df45d6..60870d6c7cd9 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -78,6 +78,8 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true + flags: unittests + name: codecov-umbrella + verbose: true files: ./coverage/lcov.info - token: 25358ea8-8f8c-4ee1-aff3-282914082378 - verbose: true \ No newline at end of file + token: 25358ea8-8f8c-4ee1-aff3-282914082378 \ No newline at end of file From eaa0f9a86e1e5b8ec5fcbcb58309f6e20ecec573 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 11:57:12 +0530 Subject: [PATCH 08/25] iupdate cnomfif --- .codecov.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 05dd51d5cf1a..5ef86865f7bf 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -7,18 +7,14 @@ coverage: default: target: auto - precision: 2 - round: down - range: "70...100" - -parsers: - gcov: - branch_detection: - conditional: yes - loop: yes - method: no - macro: no - comment: layout: "header, diff, files, footer" behavior: default + require_changes: false + after_n_builds: 1 + + show: + files: true + diff: true + unchanged: true + layout: "files" From 0266e05df1a779cdba2bcb3472e205e0e9d3570d Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 12:01:40 +0530 Subject: [PATCH 09/25] fdwafwaf --- .codecov.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 5ef86865f7bf..6f8c5176b844 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -7,14 +7,23 @@ coverage: default: target: auto + precision: 2 + round: down + range: "70...100" + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no + comment: layout: "header, diff, files, footer" behavior: default - require_changes: false - after_n_builds: 1 - show: +show: files: true diff: true - unchanged: true - layout: "files" + unchanged: false From 583eae4a5089b1f5fc3178f87d6ece026db6c2fd Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 12:06:09 +0530 Subject: [PATCH 10/25] fewfe --- .codecov.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 6f8c5176b844..6c95aa65b916 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -3,27 +3,19 @@ coverage: project: default: target: auto + threshold: 1% patch: default: target: auto - - precision: 2 - round: down - range: "70...100" - -parsers: - gcov: - branch_detection: - conditional: yes - loop: yes - method: no - macro: no + threshold: 1% comment: - layout: "header, diff, files, footer" + layout: "reach, diff, flags, files" behavior: default + require_changes: false + require_base: no + require_head: yes + show_carryforward_flags: true -show: - files: true - diff: true - unchanged: false +github_checks: + annotations: true \ No newline at end of file From a1b077d27d27004f75d6d253e894f1fc2d8b93ea Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 12:15:23 +0530 Subject: [PATCH 11/25] dewfef --- .codecov.yml | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 6c95aa65b916..a67fff82b413 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -3,11 +3,16 @@ coverage: project: default: target: auto - threshold: 1% - patch: - default: - target: auto - threshold: 1% + threshold: 0% + base: auto + flags: + - unit + paths: + - "src" + # new: auto + # threshold: 1% + informational: true + patch: off comment: layout: "reach, diff, flags, files" @@ -18,4 +23,18 @@ comment: show_carryforward_flags: true github_checks: - annotations: true \ No newline at end of file + annotations: true + +parsers: + javascript: + enable_partials: yes + +ignore: + - "tests" + - "**/*.test.js" + - "**/*.spec.js" + +flags: + unit: + paths: + - src \ No newline at end of file From 1fbdbfcf72df7d21cf985eefa9ef0cee8924b208 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 12:19:46 +0530 Subject: [PATCH 12/25] config update --- .codecov.yml | 54 ++++++++++++++++++++++------------------------------ 1 file changed, 23 insertions(+), 31 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index a67fff82b413..c769545f6f9e 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,40 +1,32 @@ +# codecov.yml coverage: status: project: default: target: auto - threshold: 0% - base: auto - flags: - - unit - paths: - - "src" - # new: auto - # threshold: 1% - informational: true - patch: off + required: true -comment: - layout: "reach, diff, flags, files" - behavior: default - require_changes: false - require_base: no - require_head: yes - show_carryforward_flags: true - -github_checks: - annotations: true + patch: + default: + target: auto + required: true -parsers: - javascript: - enable_partials: yes + coverage: + files: + - "**/*.js" -ignore: - - "tests" - - "**/*.test.js" - - "**/*.spec.js" + reports: + html: + enabled: true + text: + enabled: true + json: + enabled: true -flags: - unit: - paths: - - src \ No newline at end of file + pull_requests: + comments: + enabled: true + message: | + ### Code Coverage Report + [Codecov](https://codecov.io/gh/${{ github.repository }}/branch/${{ github.head_ref }}/graph/badge.svg) (Coverage Report) + Coverage Report: [codecov.io](https://codecov.io/gh/${{ github.repository }}/branch/${{ github.head_ref }}) From ca56939451127991836d47ed33696600d3f02c7f Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 12:26:19 +0530 Subject: [PATCH 13/25] new new iupadte in comfig --- .codecov.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index c769545f6f9e..0cc20b63fe74 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,4 +1,3 @@ -# codecov.yml coverage: status: project: @@ -28,5 +27,10 @@ coverage: enabled: true message: | ### Code Coverage Report - [Codecov](https://codecov.io/gh/${{ github.repository }}/branch/${{ github.head_ref }}/graph/badge.svg) (Coverage Report) - Coverage Report: [codecov.io](https://codecov.io/gh/${{ github.repository }}/branch/${{ github.head_ref }}) + | File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | + |----------------------------|---------|----------|---------|---------|-------------------| + | All files | ${coverage.all.files.statement.coverage} | ${coverage.all.files.branch.coverage} | ${coverage.all.files.function.coverage} | ${coverage.all.files.line.coverage} | ${coverage.all.files.uncovered_lines} | + | ${coverage.files.name} | ${coverage.files.statement.coverage} | ${coverage.files.branch.coverage} | ${coverage.files.function.coverage} | ${coverage.files.line.coverage} | ${coverage.files.uncovered_lines} | + + + For detailed coverage report, please check [Codecov Coverage Report](https://codecov.io/gh/${{ github.repository }}/branch/${{ github.head_ref }}/graph/badge.svg). From 0c229dde25cf0749d1080cb5ff421f5e78387680 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:06:08 +0530 Subject: [PATCH 14/25] configured codecov --- .codecov.yml | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 0cc20b63fe74..4e5ef320976b 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,36 +1,37 @@ +comment: + layout: "reach, diff, flags, files" + behavior: default + require_changes: true + require_base: true + coverage: status: project: default: target: auto - required: true - patch: default: target: auto - required: true - coverage: - files: - - "**/*.js" + precision: 2 + round: down + range: "70...100" + + file: + enable: true + + threshold: 1% - reports: - html: - enabled: true - text: - enabled: true - json: - enabled: true +flags: + unittests: + paths: + - "tests/" - pull_requests: - comments: - enabled: true - message: | - ### Code Coverage Report - | File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | - |----------------------------|---------|----------|---------|---------|-------------------| - | All files | ${coverage.all.files.statement.coverage} | ${coverage.all.files.branch.coverage} | ${coverage.all.files.function.coverage} | ${coverage.all.files.line.coverage} | ${coverage.all.files.uncovered_lines} | - | ${coverage.files.name} | ${coverage.files.statement.coverage} | ${coverage.files.branch.coverage} | ${coverage.files.function.coverage} | ${coverage.files.line.coverage} | ${coverage.files.uncovered_lines} | - +parsers: + javascript: + - "coverage/lcov.info" - For detailed coverage report, please check [Codecov Coverage Report](https://codecov.io/gh/${{ github.repository }}/branch/${{ github.head_ref }}/graph/badge.svg). +report: + range: "50...100" + round: down + precision: 2 From eb281c89ecf71b4f23776d002ef5c306730f94ef Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:10:02 +0530 Subject: [PATCH 15/25] fefg --- .codecov.yml | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 4e5ef320976b..a36ed8ec9e0c 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,37 +1,19 @@ -comment: - layout: "reach, diff, flags, files" - behavior: default - require_changes: true - require_base: true - coverage: status: project: default: target: auto + threshold: 1% + base: auto patch: default: target: auto + threshold: 1% + base: auto - precision: 2 - round: down - range: "70...100" - - file: - enable: true - - threshold: 1% - -flags: - unittests: - paths: - - "tests/" - -parsers: - javascript: - - "coverage/lcov.info" - -report: - range: "50...100" - round: down - precision: 2 +comment: + layout: "reach, diff, flags, files" + behavior: default + require_changes: false + require_base: no + require_head: yes \ No newline at end of file From f0ac6ab030e8ba54b6143120fb427db561ab613d Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:13:48 +0530 Subject: [PATCH 16/25] fafef --- .codecov.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index a36ed8ec9e0c..a1f483a6df19 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -12,8 +12,31 @@ coverage: base: auto comment: - layout: "reach, diff, flags, files" + layout: "reach, diff, flags, files, footer" behavior: default require_changes: false require_base: no - require_head: yes \ No newline at end of file + require_head: yes + show_carryforward_flags: true + hide_comment_details: false + +github_checks: + annotations: true + +flag_management: + default_rules: + carryforward: true + +coverage: + range: "50..80" + round: down + precision: 2 + + status: + project: + default: + target: auto + threshold: 1% + patch: + default: + target: auto \ No newline at end of file From 3e7adeb9d9fb4e8f6441ab05416d9872e0711d4a Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:17:47 +0530 Subject: [PATCH 17/25] fafef --- .codecov.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index a1f483a6df19..d435c903023e 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -4,12 +4,13 @@ coverage: default: target: auto threshold: 1% - base: auto patch: default: target: auto threshold: 1% - base: auto + range: "50..80" + round: down + precision: 2 comment: layout: "reach, diff, flags, files, footer" @@ -19,6 +20,7 @@ comment: require_head: yes show_carryforward_flags: true hide_comment_details: false + show_file_coverage: true github_checks: annotations: true @@ -26,17 +28,3 @@ github_checks: flag_management: default_rules: carryforward: true - -coverage: - range: "50..80" - round: down - precision: 2 - - status: - project: - default: - target: auto - threshold: 1% - patch: - default: - target: auto \ No newline at end of file From 5000b4bb4456d9b5469c7ddee4bfc2e515b4ebb9 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:21:32 +0530 Subject: [PATCH 18/25] fefef --- .codecov.yml | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index d435c903023e..9fcd47df8942 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -2,29 +2,26 @@ coverage: status: project: default: - target: auto threshold: 1% patch: default: - target: auto threshold: 1% - range: "50..80" - round: down - precision: 2 comment: - layout: "reach, diff, flags, files, footer" + layout: "reach, diff, flags, files" behavior: default require_changes: false - require_base: no - require_head: yes - show_carryforward_flags: true - hide_comment_details: false - show_file_coverage: true -github_checks: - annotations: true - -flag_management: - default_rules: +flags: + nodejs-tests: + paths: + - "tests/" carryforward: true + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: yes + macro: no From 7f27d34c89eb3d4e2c1d797efa10bc43958abf83 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:27:23 +0530 Subject: [PATCH 19/25] fefefefggg --- .codecov.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 9fcd47df8942..30e48a32da96 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -2,10 +2,28 @@ coverage: status: project: default: - threshold: 1% + target: auto + threshold: null + base: auto + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + only_pulls: false + flags: null + paths: null patch: default: - threshold: 1% + target: auto + threshold: null + base: auto + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + only_pulls: true + flags: null + paths: null comment: layout: "reach, diff, flags, files" @@ -13,7 +31,7 @@ comment: require_changes: false flags: - nodejs-tests: + unittests: paths: - "tests/" carryforward: true From a5d9e59cda08030052e93d849a43443660bd4c91 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:31:14 +0530 Subject: [PATCH 20/25] fjtyjt --- .codecov.yml | 54 +++++++++++++++++++++++----------------------------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 30e48a32da96..46014ce1c444 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,40 +1,25 @@ +comment: + layout: "reach, diff, files, coverage" + behavior: default + require_changes: true + after_n_builds: 1 + require_base: no + require_head: yes + show_project: true + show_files: true + show_coverage: true + coverage_layout: "percentage" + coverage: status: project: default: target: auto - threshold: null - base: auto - branches: null - if_no_uploads: error - if_not_found: success - if_ci_failed: error - only_pulls: false - flags: null - paths: null + threshold: 0.5 patch: default: target: auto - threshold: null - base: auto - branches: null - if_no_uploads: error - if_not_found: success - if_ci_failed: error - only_pulls: true - flags: null - paths: null - -comment: - layout: "reach, diff, flags, files" - behavior: default - require_changes: false - -flags: - unittests: - paths: - - "tests/" - carryforward: true + threshold: 0.5 parsers: gcov: @@ -42,4 +27,13 @@ parsers: conditional: yes loop: yes method: yes - macro: no + macro: yes + +flags: + unittests: + paths: + - tests/ + +comment_flags: + - unittests + From d481035e7b24ba4b04f036451482b8a8fa352e19 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:38:04 +0530 Subject: [PATCH 21/25] fjtyjt --- .codecov.yml | 5 +++-- jest.config.js | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 46014ce1c444..79e587a27890 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,5 +1,5 @@ comment: - layout: "reach, diff, files, coverage" + layout: "reach, diff, flags, files" behavior: default require_changes: true after_n_builds: 1 @@ -9,6 +9,8 @@ comment: show_files: true show_coverage: true coverage_layout: "percentage" + coverage_sections: + - Uncovered Line coverage: status: @@ -36,4 +38,3 @@ flags: comment_flags: - unittests - diff --git a/jest.config.js b/jest.config.js index 496a9fddf929..745cc02f12e5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,7 @@ module.exports = { - verbose: true, // display individual test results with the test suite hierarchy - collectCoverage: true, // collect test coverage information\ - collectCoverageFrom: ['scripts/**/*.js'] + verbose: true, + collectCoverage: true, + collectCoverageFrom: ['scripts/**/*.js'], + coverageReporters: ['text', 'lcov', 'json-summary'], + coverageDirectory: 'coverage' }; From 0856411a57cd01bc3d718d3fa651f12c6bea1b4b Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:42:28 +0530 Subject: [PATCH 22/25] fjtyjt --- .codecov.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.codecov.yml b/.codecov.yml index 79e587a27890..82fddc7efb63 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -10,7 +10,9 @@ comment: show_coverage: true coverage_layout: "percentage" coverage_sections: - - Uncovered Line + - Filename + - Percentage + - Uncovered Lines coverage: status: From 482f3ee25ba6a04024feef313ba3214713f13de7 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:47:56 +0530 Subject: [PATCH 23/25] yjytj --- .codecov.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 82fddc7efb63..edc6cd904c58 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -8,11 +8,14 @@ comment: show_project: true show_files: true show_coverage: true - coverage_layout: "percentage" + coverage_layout: "table" coverage_sections: - - Filename - - Percentage - - Uncovered Lines + - File + - "% Stmts" + - "% Branch" + - "% Funcs" + - "% Lines" + - "Uncovered Line #s" coverage: status: @@ -36,7 +39,7 @@ parsers: flags: unittests: paths: - - tests/ + - scripts/ comment_flags: - - unittests + - unittests \ No newline at end of file From ac880970ac2901e248c4cd61fa490b59d2be3e39 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:54:42 +0530 Subject: [PATCH 24/25] fwff --- .codecov.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index edc6cd904c58..e2f7f8cecdaf 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,13 +1,9 @@ comment: layout: "reach, diff, flags, files" - behavior: default require_changes: true after_n_builds: 1 - require_base: no - require_head: yes - show_project: true - show_files: true show_coverage: true + show_files: true coverage_layout: "table" coverage_sections: - File @@ -16,6 +12,7 @@ comment: - "% Funcs" - "% Lines" - "Uncovered Line #s" + carryforward: false coverage: status: From da805f7ac7ad92780b097b2d6d5754e0bfb03d07 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Sat, 31 Aug 2024 18:58:23 +0530 Subject: [PATCH 25/25] thjtrjr --- .codecov.yml | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index e2f7f8cecdaf..26d5773a1988 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,19 +1,3 @@ -comment: - layout: "reach, diff, flags, files" - require_changes: true - after_n_builds: 1 - show_coverage: true - show_files: true - coverage_layout: "table" - coverage_sections: - - File - - "% Stmts" - - "% Branch" - - "% Funcs" - - "% Lines" - - "Uncovered Line #s" - carryforward: false - coverage: status: project: @@ -34,9 +18,32 @@ parsers: macro: yes flags: - unittests: + code: paths: - scripts/ + tests: + paths: + - tests/ comment_flags: - - unittests \ No newline at end of file + - code + - tests + +comment: + layout: "reach, diff, flags, files" + behavior: default + require_changes: true + after_n_builds: 1 + require_base: no + require_head: yes + show_project: true + show_files: true + show_coverage: true + coverage_layout: "table" + coverage_sections: + - File + - "% Stmts" + - "% Branch" + - "% Funcs" + - "% Lines" + - "Uncovered Line #s" \ No newline at end of file