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
Looking at the coverage data sorted by test, see https://app.codecov.io/gh/mozilla/pdf.js/flags, it seems that the
unittestpercentage is too low compared to what you'd expect:unittestcliruns in Node.js and the latest GitHub workflow reports1291 specs, 0 failures, 35 pending specs, which gives a coverage percentage of64.87%.unittestruns in browsers and the latest GitHub workflow runs1336 tests per browser, since testing is done using both Firefox and Chrome, which gives a coverage percentage of only38.91%.Given that
unittestincludes more test-cases you'd expect it to have a higher coverage percentage, and not significantly lower thanunittestcli.Is it possible that the coverage reporting for
unittestdoesn't map the results correctly to the source files, since that may explain the low percentage?/cc @calixteman, @timvandermeij