Skip to main content

A condition/decision coverage tool for Python

Project description

Instrumental automatically instruments your code to add function calls that reveal execution characteristics. Instrumental can then monitor execution of your code and report back to you on how your source was executed.

When you run a script with Instrumental, it will tell you which decisions and conditions haven’t been fully exercised. So for a decision in an if statement, it will tell you if the decision only ever evaluated True or False. Instrumental will also tell you if the conditions in boolean decisions (and, or) were ever executed both True and False.

As an example: if you usually say

python setup.py nosetests

you can say

instrumental -rS -t <packagename> setup.py nosetests

where packagename is the name of your project’s top-level package.

For more information visit the Instrumental documentation.

Announcements and discussion about instrumental can be found on the “python-instrumental-discuss” google group.

Please file bug reports and enhancement requests on bitbucket.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

instrumental-0.5.3.tar.gz (148.8 kB view details)

Uploaded Source

File details

Details for the file instrumental-0.5.3.tar.gz.

File metadata

File hashes

Hashes for instrumental-0.5.3.tar.gz
Algorithm Hash digest
SHA256 472d3588d3e4b29238531143114d5a481ba077c62ed97aa5d77aee572f00a8b8
MD5 d7025edd0ef0f846a325d53bfcb670bf
BLAKE2b-256 30035872f41363794774d9f71359b12258e709a825125ce3f261adafe07d956d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page