Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support rendering coverage results generated from older versions of a file #34

Open
dbarnett opened this issue Jul 11, 2018 · 2 comments

Comments

@dbarnett
Copy link
Contributor

For some projects and coverage tools, coverage is expensive to evaluate and it's useful to be able to show coverage data from an older snapshot.

There's some complexity to getting this kind of snapshotted coverage functionality to work well since line numbers won't match up if there have been significant modifications to the file since, and there may need to be a way to show a diff of the modifications.

@dbarnett
Copy link
Contributor Author

The :CoverageShowDiff command was created to help with this scenario to show modifications that were made to the file vs. the version that existed at the time coverage was evaluated, but it has some quirks and relies on an undocumented hack of passing a diff_path field in the results dict to make it work.

@blueyed
Copy link
Contributor

blueyed commented Jul 11, 2018

https://github.com/aconrad/pycobertura might be useful in this regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants