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