diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-02-11 09:31:43 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-02-11 09:31:43 -0800 |
commit | 2d3b13e91705a2940f8af0c3d363190bee85ea0d (patch) | |
tree | 35900c9dec4d42fb73e70734bbb77790e4e43444 /tasks.py | |
parent | 675e30986e3aa2882093b8c983a93619f61a019d (diff) |
Add coverage command as Invoke task
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -26,5 +26,9 @@ www = Collection.from_module(_docs, name='www', config={ def test(ctx): ctx.run("python test.py --verbose") +@task +def coverage(ctx): + ctx.run("coverage run --source=paramiko test.py --verbose") + -ns = Collection(test, docs=docs, www=www) +ns = Collection(test, coverage, docs=docs, www=www) |