From 108e91d881fac6c9278019f88e916d9f242f6284 Mon Sep 17 00:00:00 2001 From: James Tocknell Date: Thu, 10 Jan 2019 18:44:57 +1100 Subject: [PATCH] TST,CI: Specify coverage location as default Coverage looks by default at .coverage, but due to cd'ing to .tox, the output file is written to a different location than the default. Specifying the base dir in the associated envvar when testing fixes this. --- .gitignore | 1 + tox.ini | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index c5957708f..9b3904d7d 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ MANIFEST *.so *~ .pytest_cache +.coverage diff --git a/tox.ini b/tox.ini index 3a6e485e7..9fbda49a3 100644 --- a/tox.ini +++ b/tox.ini @@ -26,6 +26,9 @@ changedir = passenv = HDF5_DIR TOXPYTHON +setenv = + COVERAGE_FILE={toxinidir}/.coverage +# needed otherwise coverage cannot find the file when reporting basepython = pypy: {env:TOXPYTHON:pypy} py27: {env:TOXPYTHON:python2.7}