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

Questions about how to use Coverage Gutters as a new user #315

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, I am currently trying to use Coverage Gutters and the end result does not seems what I want it to be, maybe I did something wrong or the configuration of the settings are incorrect.

This is what I did from the code downloaded at the examples side. First I added some new lines of code into the file, 'test_sample.py', as shown in the picture. New lines of code are added in test_2:

1

After that, the codes are then debug and go through the testing phase, which will then shown as in the following picture:

2

Lastly the 'Watch' button is being clicked but the test_2 section is not covered with red lines:

3

So I would like to ask do I need to change any of the settings in the Visual code to do it? Or do I do anything wrongly? Because this is my first time doing it and I tried some research on the internet and to no avail, I could not find any information about it. A ZIP file of the code are added at the bottom. Thank you for your help and guidance.

vscode-coverage-gutters-master (1).zip

ryanluker commented 3 years ago

@maxcwy2018 going to close this issue as we can use the discussion for this question. https://github.com/ryanluker/vscode-coverage-gutters/discussions/316