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

Gutter not showing as in README #358

Closed kasanitej closed 2 years ago

kasanitej commented 2 years ago

Describe the bug I cannot able to see full gutters as shown in the README instead shon me as side colors. DO I have to enable some settings?

To Reproduce Steps to reproduce the behaviour:

#app.py
def fibonacci(n):
    if n <= 2:
        return 1
    return fibonacci(n - 1) + fibonacci(n - 2)

def factorial(n):
    if n <= 1:
        return 1
    return n * factorial(n - 1)
#test_app.py
from app import fibonacci
class TestFibonacci:
    def test_fin(self):
        assert fibonacci(1) == 1

    def test_fin_10(self):
        assert fibonacci(10) == 55

    def test_fin_30(self):
        assert fibonacci(30) == 832040

run pytest --cov=app --cov-report xml Expected behaviour As shown in README

Screenshots image

Desktop (please complete the following information):

Additional context Added coverage.xml contents `<?xml version="1.0" ?>

C:\Users\Owner\OneDrive\PC Desktop\temp\pytest coverage

`

kasanitej commented 2 years ago

got the answer. Goto settings> enable "show line coverage"