summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2018-11-12 12:57:35 +0200
committerDan Xu <xudan16@huawei.com>2018-11-14 14:31:50 +0000
commit930ebc4af5c9895775443b9a0ab17a73dc35693c (patch)
tree0554273305ed03999b8146a39b5fa3efb8ff6c51 /tox.ini
parent7f46996011d391178b7d9f876ac2140f62dcf789 (diff)
Improve tox testing
This patch removes unused test requirements. In addition, it runs coverage together with unit tests by py.test. In addition, it adds sone docs links which were missing. Finally, it adds coverage reports to .gitignore file. Change-Id: I68e65781b17929c60fbb3f4c318b1366c35d185f Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini21
1 files changed, 14 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index 922f7cb9..280e359c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,7 +14,13 @@ install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
- py.test --basetemp={envtmpdir} --ignore=cvp {posargs}
+ py.test \
+ --basetemp={envtmpdir} \
+ --cov=dovetail \
+ --cov-report term-missing \
+ --cov-report xml \
+ --ignore=cvp \
+ {posargs}
setenv =
VIRTUAL_ENV={envdir}
HOME = {envtmpdir}
@@ -24,14 +30,8 @@ whitelist_externals = wget
echo
[testenv:pep8]
-deps = flake8
commands = flake8 {toxinidir}
-[testenv:py27-cover]
-commands = python setup.py testr --coverage \
- --omit='{toxinidir}/dovetail/tests*' \
- --testr-args='{posargs}'
-
[flake8]
show-source = True
ignore = E123,E125,H803,E722,W503
@@ -47,3 +47,10 @@ whitelist_externals = echo
[testenv:docs-linkcheck]
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
+[testenv:yamllint]
+basepython = python2.7
+files =
+ etc
+commands =
+ yamllint -s {[testenv:yamllint]files}