Reputation: 11919
I know coverage python package is capable of creating reports (in html) that show if pieces of code are covered by tests, or not. I can also run just a single individual test, and know what does it covers.
Is there any way I can reverse the analysis? I mean, run all my tests, choose a line of code, and know which tests are hitting that line of code?
Upvotes: 0
Views: 157
Reputation: 375574
This is a feature of coverage.py 5.0 alpha. There's a more recent alpha that the a3 mentioned in the blog post. Give it a try and let me know how it works for you.
Upvotes: 2