Skip to main content

A GUI tool for visualizing code coverage results.

Project description

Duvet is a GUI tool for visualizing code coverage results produced by coverage.py.

Why the name Duvet? Because a duvet doesn’t just provide coverage - it keeps you warm and cozy.

Quickstart

In your virtualenv, install Duvet, generate some coverage data, and then run duvet:

$ pip install duvet
$ coverage run myscript.py arg1 arg2
$ duvet

This will pop up a GUI window, displaying all source code in your current working directory. Any source file mentioned in the coverage data will be highlighted in the source file tree, with a color indicating how good the coverage is (red for bad coverage, green for perfect coverage). If you select a filename in the tree, the contents of that file will be displayed, with the missed lines highlighted.

Problems under Ubuntu/Debian

Deian and Ubuntu’s packaging of Python omits the idlelib library from it’s base packge. If you’re using Python 2.7 on Ubuntu 13.04, you can install idlelib by running:

$ sudo apt-get install idle-python2.7

For other versions of Python, Ubuntu and Debian, you’ll need to adjust this as appropriate.

Problems under Windows

If you’re running Duvet in a virtualenv, you’ll need to set an environment variable so that Duvet can find the TCL graphics library:

$ set TCL_LIBRARY=c:\Python27\tcl\tcl8.5

You’ll need to adjust the exact path to reflect your local Python install. You may find it helpful to put this line in the activate.bat script for your virtual environment so that it is automatically set whenever the virtualenv is activated.

Documentation

Documentation for Duvet can be found on Read The Docs.

Community

Duvet is part of the BeeWare suite. You can talk to the community through:

Contributing

If you experience problems with Duvet, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

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

duvet-0.1.1.tar.gz (17.4 kB view details)

Uploaded Source

File details

Details for the file duvet-0.1.1.tar.gz.

File metadata

  • Download URL: duvet-0.1.1.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for duvet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b17e11ff48c211d610b8a4b4aef799bf44ea1f396c92aa13504caa81595d336
MD5 74f4eb25186db105a28847fed8bef5af
BLAKE2b-256 2a2d7d354a89004e7b98f700bbf4355c6a7679ff5955a5da77735cfa6fb72080

See more details on using hashes here.

Supported by

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