Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coverage: Which test touched this line?

Up to now the coverage in Python binary: A line was executed or not.

Is there a way to get per python code line a lists of tests which execute this line?

I read the coverage docs, but could not find a solution.

like image 888
guettli Avatar asked May 20 '21 09:05

guettli


1 Answers

coverage.py can do this, with dynamic contexts

Clearly I need to make this easier to find. What would have helped?

like image 123
Ned Batchelder Avatar answered Nov 09 '22 03:11

Ned Batchelder