Coverage.py
7.3#3 in test coverage toolsFree planFree planAPILinuxmacOSSelf-hosted
Visit| Fact | Coverage.py | gcov |
|---|---|---|
| Branch coverage | The tool can measure whether alternative branch paths were executed. | The --branch-probabilities option reports branch frequencies in the output file and branch summary information on standard output. |
| Intended users | The documentation presents Coverage.py as a tool for people measuring Python test effectiveness by seeing which code tests exercise and which they miss. | The documentation describes software developers using coverage results with test suites to find where additional tests are needed. |
| Purpose | Coverage.py measures which parts of Python programs ran and identifies executable code that did not run, commonly to gauge test effectiveness. | gcov is a test coverage program used with GCC to find untested parts of programs and guide code optimization. |
Coverage.py is for developers measuring how much of their Python code their tests exercise. Its report formats and dynamic contexts can help teams inspect coverage in different ways.
gcov is for developers using GCC who want coverage information alongside test suites to find areas needing more tests. It can also help investigate execution time with gprof.