-
-
Notifications
You must be signed in to change notification settings - Fork 366
Open
Description
I execute the following nyc commands, after generating individual coverage reports on the same codebase using different test executions run by Jest and Cypress.
nyc merge coverage-jest combined/coverage-jest.json
nyc merge coverage-cypress combined/coverage-cypress.json
nyc report combined --reporter html --reporter text
Expected Behavior
I'd expect this to show a correct cumulative coverage report of .ts and .html files.
Observed Behavior
- Coverage of .html files is not shown in merged report, while they are show in individial report.
- Coverage of some .ts files is shown correctly, but for others a
Cannot read property 'locations' of undefinedTypeErroris shown.
Troubleshooting steps
- still occurring when I put
cache: falsein my nyc config
Environment Information
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Memory: 7.97 GB / 31.88 GB
Binaries:
Node: 13.6.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.0 - C:\Program Files\nodejs\yarn.CMD
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
npmPackages:
istanbul-instrumenter-loader: 1.2.0 => 1.2.0
istanbul-lib-coverage: 1.2.1 => 1.2.1
nyc: ^15.0.1 => 15.0.1
source-map-support: ^0.5.16 => 0.5.16
ts-node: ^7.0.1 => 7.0.1
typescript: ~3.7.4 => 3.7.5
For Cypress coverage I use above dependencies as well as @cypress/code-coverage:^3.0.2.
I'm using jest: 24.1.0 to produce unit test coverage.
kopach, bdavidxyz, snake-py, ama1er, jfairley and 1 more
Metadata
Metadata
Assignees
Labels
No labels