Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install createcoverage

How to install createcoverage

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install createcoverage
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.1
1.2Never BuiltWhy not?
1.1 Available View build log
1.0 Available View build log
0.4 Available View build log
0.3 Available View build log
Windows (64-bit)
1.1
1.2Never BuiltWhy not?
1.1 Available View build log
1.0 Available View build log
0.4 Available View build log
0.3 Available View build log
Mac OS X (10.5+)
1.1
1.2Never BuiltWhy not?
1.1 Available View build log
1.0 Available View build log
0.4 Available View build log
0.3 Available View build log
Linux (32-bit)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
0.4 Available View build log
0.3 Available View build log
Linux (64-bit)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
0.4 Available View build log
0.3 Available View build log
 
License
GPL
Dependencies
Imports
Lastest release
version 1.2 on Nov 26th, 2012

Createcoverage

This package installs one command: createcoverage that runs your tests with coverage.py and opens the coverage reports in your browser. All with just one single handy command.

Assumption: you're using buildout. Or rather, the assumption is that you have a bin/test command that runs all your tests.

No options are passed to coverage.py, so any extra options you want to give to coverage must be put in a .coveragerc in your buildout's root. This is a good idea in any case :-) An example .coveragerc that omits code you normally don't want to include in a coverage report:

[report]
omit =
    /home/*/.buildout/eggs/*
    /usr/*
    parts/*
    eggs/*
    */test*

Installing createcoverage in a zc.recipe.egg section is enough. Createcoverage itself depends on coverage.py and makes sure bin/coverage is created:

[console_scripts]
recipe = zc.recipe.egg
eggs = createcoverage
Code, bugs, ideas

The code is hosted at bitbucket: https://bitbucket.org/reinout/createcoverage .

You can also report issues and bugs and ideas there.

Development installation

The first time, you'll have to run the "bootstrap" script to set up setuptools and buildout:

$> python bootstrap.py

And then run buildout to set everything up:

$> bin/buildout

(On windows it is called bin\buildout.exe).

You'll have to re-run buildout when you or someone else made a change in setup.py or buildout.cfg.

The current package is installed as a "development package", so changes in .py files are automatically available (just like with python setup.py develop).

Tests can always be run with bin/test or bin\test.exe.

TODO

  • Probably a whole lot of things.

Credits

Created by Reinout van Rees.

Changelog of createcoverage

1.2 (2012-06-28)
  • Fixed a problem with opening the coverage index.html file on OS X when using Python 2.7 or newer by using a file URL instead of a path.
1.1 (2011-04-19)
  • Making the path to the coverage index.html file absolute before opening it in the webbrowser. This prevents OSX from complaining that it isn't a URL.
1.0 (2010-12-20)
  • Added option ("-d") for specifying an output directory. Specifying it also makes sure the results aren't opened in a webbrowser (as the option is intended for offline operation for automatic documentation generation purposes).
0.4 (2010-10-05)
  • Falling back to global 'coverage' binary if there isn't one in bin/coverage.
0.3 (2010-09-20)
  • Added missing MANIFEST.in file so that the distribution on pypi is complete now.
0.2 (2010-09-20)
  • Documentation update: pointing at bitbucket for code, issues, ideas.
0.1 (2010-09-20)
  • First working version.
  • Copied some code from the "createzopecoverage" package.
  • Initial library skeleton created by nensskel. [reinout]

Subscribe to package updates

Last updated Nov 26th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.