python-coverage

python wrapper to run python scripts with coverage by default


Keywords
coverage, cli, shell
License
BSD-3-Clause
Install
pip install python-coverage==0.0.5

Documentation

CircleCI Scrutinizer Semaphore CI Travis

Install

$ [sudo] pip install python-coverage

Features

  • run python scripts with coverage by default

How it works

/usr/bin/python                             python binary
/usr/local/bin/coverage                     coverage script
/usr/local/bin/.python-coverage/python      python wrapper
/usr/local/bin/python-coverage-helper       $PATH helper

Examples

# add python wrapper to $PATH
$ eval "$(python-coverage-helper)"

$ chmod +x path/to/script.py
$ path/to/script.py
+ /usr/bin/python /usr/local/bin/coverage run path/to/script.py