For full information, please reffer to https://medium.com/@khalid.nwb/a-quick-intro-to-to-test-coverage-in-python-9bf299711c6c
$pip install coverage
If you are using anaconda distribution, you can use: $conda install coverage
You can verify your Coverage installation by checking the version: $coverage –version
$coverage run -m pytest arg1 arg2 arg3
$coverage -m unittest test_code
$coverage report
$coverage html
Add a comment after the line "# pragma: no cover"