the textual report is sufficientbut if we use the command coverage htmlwe can get an even fancier interactive html report that we can view in web browser the web page even highlights which lines in the source code were and were not tested here' how it lookswe can use the coverage py module with py test as well we'll need to install the py test plugin for code coverageusing pip install pytest-coverage the plugin adds several command-line options to py testthe most useful being --cover-reportwhich can be set to htmlreportor annotate (the latter actually modifies the source code to highlight any lines that were not coveredunfortunatelyif we could somehow run coverage report on this section of the we' find that we have not covered most of what there is to know about code coverageit is possible to use the coverage api to manage code coverage from within our own programs (or test suites)and coverage py accepts numerous configuration options that we haven' touched on we also haven' discussed the difference between statement coverage and branch coverage (the latter is much more usefuland the default in recent versions of coverage pyor other styles of code coverage