Added tox environment for gathering coverage

This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: Ia32b6c0b2ff61a2775e34b2958982f0ae11cdd8d
This commit is contained in:
Paul Goins
2019-03-01 11:25:26 +01:00
parent 5ae43bb056
commit 1c71b1c969
3 changed files with 29 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
- project:
templates:
- python35-charm-jobs
- openstack-cover-jobs