ArtiomTr / jest-coverage-report-action

Track your code coverage in every pull request.
https://www.covbot.dev
MIT License
499 stars 143 forks source link

Unchanged files with check annotations (beta) #405

Open VictorComette opened 10 months ago

VictorComette commented 10 months ago

Describe a bug

I'm unable to prevent coverage annotation on unchanged files. I've setup the action with annotations: coverage and expected to have annotations to changed files only, as stated in the docs:

coverage - Will annotate those sections of your code that test did not cover. Limited to changed lines when used on a Pull Request

Even so, GH is adding a entire section on the diff entitled "Unchanged files with check annotations (beta)" with a bunch of annotations.

As we are starting a long effort of covering a huge legacy application with tests, this is becoming an issue due to the extensive number of files without coverage.

I see this should be addressed already, per this closed issue, but it's not working for me.

Expected behavior

To have coverage annotations on changed files only (changed lines if possible).

Details

Additional context

ArtiomTr commented 8 months ago

Hello @VictorComette, can you please provide minimal reproducible example of this issue? If not, maybe you can email your report.json file as well as PR diff to maintainers@covbot.dev?

StevenBoutcher commented 6 months ago

I'm seeing this issue using the recommended default setup for this action on v2.3