summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-02-11 09:31:43 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-02-11 09:31:43 -0800
commit2d3b13e91705a2940f8af0c3d363190bee85ea0d (patch)
tree35900c9dec4d42fb73e70734bbb77790e4e43444 /tasks.py
parent675e30986e3aa2882093b8c983a93619f61a019d (diff)
downloadparamiko-2d3b13e91705a2940f8af0c3d363190bee85ea0d.tar.gz
Add coverage command as Invoke task
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 79cb94f0..f8f4017d 100644
--- a/tasks.py
+++ b/tasks.py
@@ -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)