Giter Club home page Giter Club logo

Comments (7)

juanpabloaj avatar juanpabloaj commented on September 6, 2024

with

:Coveragepy report

the lines are updates :)

from coveragepy.vim.

alfredodeza avatar alfredodeza commented on September 6, 2024

right, :Coveragepy show will only re-read the report, it will not re-process it.

But maybe it should?

from coveragepy.vim.

alfredodeza avatar alfredodeza commented on September 6, 2024

ah wait, no, it should not re-process it because processing the report means waiting on coveragepy to read the file and spit out the results:

coverage report -m -i /path/to/coveragepy_report

And that would be just tedious.

from coveragepy.vim.

eprigorodov avatar eprigorodov commented on September 6, 2024

This function, refreshing coverage marks without opening report buffer, still seems to be desirable for work on completing test coverage. My typical cycle is: scroll to some uncovered lines, write corresponding unit tests in adjacent split buffer, re-run unit tests under coverage.py. And then I would like to see newly covered lines green and move to the next batch. Using :Coveragepy report for that requires switching to report buffer and closing it, which is just a waste of time on each cycle.

How about adding :Coveragepy refresh command which would invoke coverage report and update coverage marks without opening report window? I already have a patch.

from coveragepy.vim.

alfredodeza avatar alfredodeza commented on September 6, 2024

@eprigorodov I like your solution :)

from coveragepy.vim.

eprigorodov avatar eprigorodov commented on September 6, 2024

And I like your plugin, it just works and does what was needed. Please have a look at PR #17. Thank you :)

from coveragepy.vim.

alfredodeza avatar alfredodeza commented on September 6, 2024

Fixed with PR #17

from coveragepy.vim.

Related Issues (18)

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.