I have a question about using v8 for code coverage. We recently upgraded node from 18.19.1 to 18.20.2 and saw our test coverage drop
When running on my m1 mac I get:
version | statement | branch | function | lines
18.19.1 | 84.81 | 89.51 | 85.41 | 84.81
18.20.2 | 84.66 | 88.52 | 85.41 | 84.66
a little drop like this is fine, we can adjust our thresholds
But when our tests run in CI (on github actions running Ubuntu (docker image ubuntu-22.04)), we’re seeing a really big drop in branch coverage
version | statement | branch | function | lines
18.20.2 | 82.89 | 72.81 | 85.41 | 82.89 |
It’s the lack of consistency between local and CI that is really affecting us at the moment. Is it expected that using v8 for code coverage could give such different results depending on the platform?
user19624709 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.