0

The coverage report only shows the percentage, and I would like to know all executed statements.

Eventually, I need a map in which the key is the statement and the value is True(Executed)/False(Not Executed).

Is there any way to do this?

Sean
  • 25
  • 2

1 Answers1

0

You can use the HTML report to see what statements are executed and not. You can access the data through the Coverage Data API: https://coverage.readthedocs.io/en/6.3.2/api_coveragedata.html

What will you be doing with the executed/not-executed data?

Ned Batchelder
  • 364,293
  • 75
  • 561
  • 662