createzopecoverage

Provides single script to create coverage reports
Download

createzopecoverage Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Reinout van Rees
  • Publisher web site:
  • http://vanrees.org

createzopecoverage Tags


createzopecoverage Description

Provides single script to create coverage reports createzopecoverage is a Python module that provides a bin/createzopecoverage script that serves as a oneline coverage report generator. It is essentially a wrapper around z3c.coverage. It is intended for use inside buildouts, so there are two assumptions: * The directory you run this script from is the root of the buildout. * There is a bin/test.And yes, it assumes a z3c.coverage, so a zope test setup. It doesn't work with a "regular" coverage.py setup.Installation and useTo install, add createzopecoverage to a zc.recipe.egg section. You often already have one for common scripts. So something like this:...parts = ... console_scriptsrecipe = zc.recipe.eggeggs = ... createzopecoverageThis gives you a bin/createzopecoverage script that does the following: * Check whether bin/test exists. Safety feature. * Remove old coverage dir if it exists. This way you always have clean results. * Run bin/test with the --coverage=... option. * Use z3c.coverage to create the actual reports. By default into ./coverage/reports. If you start createzopecoverage with a command line argument (bin/createzopecoverage /tmp/output) it will put the reports into that directory. * Open the reports in your webbrowser if you did not specify an output directory. The assumption here is that if you run the script as-is, you just want to see the coverage reports. If you do specify an output directory, you're probably running it from within buildbot or so on the server and you want the output in some webserver-served directory. No use to open a browser on the server.DevelopmentThe source code lives at https://bitbucket.org/reinout/createzopecoverage, you can also report issues there. Feel free to suggest improvements (and especially to make them yourself). Requirements: · Python What's New in This Release: · Added possibility for installing createzopecoverage via a one-line buildout recipe, instead of via a zc.recipe.egg section. Bonus: you get to choose your script name (i.e. name of your part).


createzopecoverage Related Software