From 3a26737b035812271f9604bb3f3a0cfc1eb8a3ac Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 4 Jan 2019 01:04:28 +0100 Subject: [PATCH] Fix coverage collection in tox --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 56ed19e51..2356ffc74 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,9 @@ envlist = py27, py34, py35, py36, py37, flake8 commands = {envbindir}/py.test --tb=short \ --junitxml={toxworkdir}/junit-{envname}.xml \ - --cov=dosagelib --cov-config=tox.ini --cov-branch \ + --cov={envsitepackagesdir}/dosagelib \ + --cov-branch \ + --cov-config=tox.ini \ --cov-report=term \ --cov-report=xml:{toxworkdir}/cov-{envname}.xml \ --cov-report=html:{toxworkdir}/cov-{envname} \