ryanluker / vscode-coverage-gutters

Display test coverage generated by lcov and xml - works with many languages
https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
MIT License
460 stars 88 forks source link

Coverage is not right (always 0%). #348

Closed agfn closed 2 years ago

agfn commented 2 years ago

Describe the bug Coverage is not right (always 0%).

To Reproduce Steps to reproduce the behaviour:

  1. open folder of json-c
  2. add lcov.info file to coverage/lcov.info
  3. click watch
  4. you can see the error: "0% Coverage"

Expected behaviour All these code should be marked in green.

Screenshots image

Desktop (please complete the following information):

Additional context

lcov.zip

NOTE: to import lcov.info, you need:

sed "s/\/home\/lt\/projects\/libfuzz/${json-c-parent-dir}/g" lcov.info
agfn commented 2 years ago

Apologize for my fault. It works fine. It's lcov.info wrong.

ryanluker commented 2 years ago

@agfn Thanks for the ticket! No worries or apologies needed, I am glad you figured out the issue and are using the extension 😁 .