Skip to content

Strangely low coverage for the browser unittest #21172

@Snuffleupagus

Description

@Snuffleupagus

Looking at the coverage data sorted by test, see https://app.codecov.io/gh/mozilla/pdf.js/flags, it seems that the unittest percentage is too low compared to what you'd expect:

  • unittestcli runs in Node.js and the latest GitHub workflow reports 1291 specs, 0 failures, 35 pending specs, which gives a coverage percentage of 64.87%.

  • unittest runs in browsers and the latest GitHub workflow runs 1336 tests per browser, since testing is done using both Firefox and Chrome, which gives a coverage percentage of only 38.91%.

Given that unittest includes more test-cases you'd expect it to have a higher coverage percentage, and not significantly lower than unittestcli.


Is it possible that the coverage reporting for unittest doesn't map the results correctly to the source files, since that may explain the low percentage?

/cc @calixteman, @timvandermeij

Metadata

Metadata

Assignees

Labels

infraInfrastructure relatedtest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions