From 2d3b13e91705a2940f8af0c3d363190bee85ea0d Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Tue, 11 Feb 2014 09:31:43 -0800 Subject: Add coverage command as Invoke task --- tasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tasks.py') 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) -- cgit v1.2.1