Coverage.py Description
Coverage.py can be used to measure the code coverage of Python programs. It monitors your program and notifies you which parts have been executed. Then it analyzes the source code to find code that could have been executed. It is used to measure the effectiveness of tests. It can help you determine which parts of your code are being used by tests and which are not. Coverage run can be used to run your test suite, gather data, and run it again. You can run your test suite as usual, but your test runner can be run under coverage. If your test runner command begins with "python", replace it with "coverage run". To limit the coverage measurement to code in your current directory and to find files that were not executed, add the source argument (to your coverage command line). It will default measure line (or statement) coverage. It can also measure branch coverage. It can also tell you which tests were run on which lines.