summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 8b0c619c8..54ff3b873 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,6 +25,8 @@ envlist = py27,lint,docs
# force installation of sphinx and lint in virtual env, otherwise
# the command pick up the `pki` package from the system's site packages.
install_command = pip install {opts} --force-reinstall --upgrade {packages}
+deps =
+ pytest
[testenv:py27]
sitepackages = True
@@ -34,6 +36,7 @@ commands =
python2.7 {envbindir}/pki-server --help
python2.7 {envbindir}/pki-server-upgrade --help
python2.7 {envbindir}/pki-upgrade --help
+ py.test --capture=no --strict {posargs}
[testenv:lint]
basepython = python2.7
@@ -71,6 +74,9 @@ deps =
commands =
sphinx-build -v -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
+[pytest]
+python_files = tests/python/*.py
+
[flake8]
exclude = .tox,*.egg,dist,build,conf.py,tests/*
include = *.py,pki-upgrade,pkidestroy,pki-server,pki-server-upgrade,pkispawn,pki