The output of sum-coverage (following calls to format-coverage) is incorrectly reporting total coverage stats.
Behavior appears in CI (github actions, ubuntu-22.04) and locally (mac osx 13.3).
Steps to Reproduce
Create the following files (which locally were generated from format-coverage of lcov files):
Run the sum coverage command, i.e. ./cc-test-reporter sum-coverage coverage-cypress.json coverage-jest.json -p 2 -o coverage-total.json.
View the total coverage report, which incorrectly reports that the example.js file has no coverage:
Description
The output of
sum-coverage
(following calls toformat-coverage
) is incorrectly reporting total coverage stats. Behavior appears in CI (github actions, ubuntu-22.04) and locally (mac osx 13.3).Steps to Reproduce
Create the following files (which locally were generated from
format-coverage
of lcov files):coverage-cypress.json
coverage-jest.json
Run the sum coverage command, i.e.
./cc-test-reporter sum-coverage coverage-cypress.json coverage-jest.json -p 2 -o coverage-total.json
. View the total coverage report, which incorrectly reports that theexample.js
file has no coverage: