Преглед на файлове

Omit unit tests directory from all coverage runs

Cristian Matiut преди 2 години
родител
ревизия
b3461a9c43
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      tox.ini

+ 5 - 1
tox.ini

@@ -21,13 +21,17 @@ setenv =
 commands =
 commands =
   stestr run --no-subunit-trace {posargs}
   stestr run --no-subunit-trace {posargs}
   coverage combine
   coverage combine
-  coverage report --fail-under=75 --skip-covered --omit={toxinidir}/coriolis/tests/*
+  coverage report --fail-under=75 --skip-covered
   coverage html -d cover
   coverage html -d cover
   coverage xml -o cover/coverage.xml
   coverage xml -o cover/coverage.xml
 
 
 [testenv:venv]
 [testenv:venv]
 commands = {posargs}
 commands = {posargs}
 
 
+[coverage:run]
+source = coriolis
+omit = coriolis/tests/*
+
 [flake8]
 [flake8]
 # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
 # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
 # E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
 # E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301