Skip to main content

Duvet

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

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 and Ubuntu, 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.

Metadata

Release files for duvet 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duvet 0.1.2
File Size Uploaded
duvet-0.1.2.tar.gz 18.2 kB Details

Release files / duvet-0.1.2.tar.gz

Download URL duvet-0.1.2.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
81e0023c41850d4cb7d3baf9de1897f07ef61c3990d8569976371bbd3e70f2fa
BLAKE2b-256 checksum
How to use checksums
4bc24786fa1b72e0433abd4ece498104bc7a95f60c848b3801173b70acb9c046
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page