openzim / mwoffliner

Mediawiki scraper: all your wiki articles in one highly compressed ZIM file
https://www.npmjs.com/package/mwoffliner
GNU General Public License v3.0
296 stars 74 forks source link

Double check code coverage reporting #2060

Open audiodude opened 4 months ago

audiodude commented 4 months ago

In #2055 I got a notification that the line I changed was missing coverage:

image

However when I added a log statement here I could see that the code was being executed by this test

Perhaps e2e tests are not being counted for coverage?

audiodude commented 4 months ago

Actually that doesn't make sense, because it is a unit test.

kelson42 commented 4 months ago

unit test code should be excluded of code coverage. We fix that in the config yml file for codecov.

audiodude commented 4 months ago

What I meant was, the test I linked to is a unit test, so my hypothesis that "e2e tests are not generating coverage" is definitely wrong.