From 049d6f65ae3e39ac1b1dbb02a80d4ddc00afeb51 Mon Sep 17 00:00:00 2001 From: jpic Date: Wed, 15 Jun 2016 21:44:36 +0200 Subject: [PATCH] Add coverage report --- tox.ini | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index e9c9bc8..9ef6dcf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,25 @@ [tox] envlist = py{27,35} +[base] +commands = + coverage report -m + [testenv] usedevelop = true commands = - python -m unittest + coverage run -m unittest + {[base]commands} deps = asgiref twisted autobahn + coverage [testenv:py27] commands = - python -m unittest2 + coverage run -m unittest2 + {[base]commands} deps = unittest2 {[testenv]deps}