-
Notifications
You must be signed in to change notification settings - Fork 0
jrydberg/txcovreport
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
txcovreport
===========
This is a simple reporter plugin for Twisted's trial unittest tool.
Provided that you have "test-case-name" meta-variables in your files,
like Twisted do, you can get per-file coverage reports.
Tested with twisted 10.0
You need 'figleaf' for this to work. Just install it with easy_install.
See the transcript below for more information:
$ head -2 xkaron/wsgi.py
# -*- test-case-name: xkaron.test.test_wsgi -*-
$ trial --reporter=tree-coverage xkaron.test
xkaron.test.test_wsgi
WSGIGatewayTestCase
test_bad_request_method ... [OK]
Test Coverage:
xkaron/wsgi.py ... [29%]
In total 29% covered of 1 file
-------------------------------------------------------------------------------
Ran 1 tests in 0.024s
PASSED (successes=1)
About
Twisted trial coverage reporter
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published