Skip to content

Python Code Coverage

Python Code Coverage#

Handles line by line and branch checking about where you are missing tests


    pip install coverage


    coverage run

Get report#

    coverage report

See missing lines

     coverage report -m

Html Coverage#

    coverage html

Creates `html` in `htmlcov` folder

Also gives red lines not tested