[lxc-devel] [pylxd/master] Add coverage report to tox

rockstar on Github lxc-bot at linuxcontainers.org
Wed May 25 19:35:46 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 302 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160525/9f846bce/attachment.bin>
-------------- next part --------------
From d7e99d193f135dc95e7519b9b750423a35019b26 Mon Sep 17 00:00:00 2001
From: Paul Hummer <paul at eventuallyanyway.com>
Date: Wed, 25 May 2016 13:33:57 -0600
Subject: [PATCH] Add coverage report to tox

---
 tox.ini | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index 268aff9..e3e3ea9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,7 +10,8 @@ setenv =
    VIRTUAL_ENV={envdir}
 deps = -r{toxinidir}/requirements.txt
        -r{toxinidir}/test-requirements.txt
-commands = nosetests pylxd
+       coverage
+commands = nosetests --with-coverage --cover-package=pylxd pylxd
 
 [testenv:pep8]
 commands = flake8 --ignore=E123,E125


More information about the lxc-devel mailing list