Browse Source

Fix tox env for coverage test

According to previous discussions on mailing list, we should use 'test'
instead of 'testr' for the coverage test. This patch also removes a
outdated path from coverage tests.

Change-Id: I959d44b96a19097411de68b1452850ddef8ea9dd
changes/23/292423/1
tengqm 6 years ago
parent
commit
0a273e3a9e
  1. 2
      .coveragerc
  2. 2
      tox.ini

2
.coveragerc

@ -1,7 +1,7 @@
[run]
branch = True
source = senlin
omit = */tests/*,senlin/openstack/common/*
omit = */tests/*
[report]
ignore_errors = True

2
tox.ini

@ -58,7 +58,7 @@ commands = {posargs}
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands = python setup.py testr --coverage --testr-args="^(?!senlin\.tests\.functional){posargs}"
commands = python setup.py test --coverage --testr-args="^(?!senlin\.tests\.functional){posargs}"
[testenv:docs]
deps = -r{toxinidir}/test-requirements.txt

Loading…
Cancel
Save