Coder Social home page Coder Social logo

Comments (4)

ryanluker avatar ryanluker commented on July 18, 2024 1

@moi90 Thanks for the example, it definitely looks doable and there is other work that is similar to this (adding ui elements similar to codelens) that could be done in parallel with this.

from vscode-coverage-gutters.

moi90 avatar moi90 commented on July 18, 2024 1

Cool, I'm looking forward to it! (But take your time, this extension is already a great help as it is.)

from vscode-coverage-gutters.

ryanluker avatar ryanluker commented on July 18, 2024

Thanks for the ticket @moi90!

Do you have an example from another tool you can share?

Currently, the highlighting is the whole line or none of the line, but I wonder if it could be more "partial" as well. Meaning, if the line has a partial branch (like you alluded to) the coverage highlight would only go as far as the code had traversed.

partial-coverage-lines

Definitely something to investigate or an option as well (it might be easier to implement than other popover gui elements as I am not familiar with that area of the vscode extension api).

from vscode-coverage-gutters.

moi90 avatar moi90 commented on July 18, 2024

pytest-coverage's html output displays some additional information:

grafik

The corresponding xml is:

<line number="40" hits="1" branch="true" condition-coverage="50% (1/2)" missing-branches="41"/>

I find the "40 ↛ 41" especially useful. Seeing the condition-coverage would be useful as well.

But I would understand if these (mostly cosmetical) improvements do not justify the effort.

from vscode-coverage-gutters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.