ironic-specs/tox.ini
John L. Villalovos 06514c2b79 Switch tox unit test command to use ostestr
This commit switches the tox command to use ostestr instead of calling
testr through setup.py. The primary advantage here is that it uses the
subunit-trace output filter. ostestr primarily exists as a replacement
for pretty_tox.sh bash scripts which spread like a plague through
OpenStack projects after Nova copied it from Tempest. (although
ostestr also provides some other useful features) Granted ironic-specs
wasn't using that, but this commit makes the switch to enable getting
the subunit-trace output which is generally useful.

Note that this dramatically increases output while running tests.
However, test failures are still at the bottom of the output, so it
shouldn't cause much pain, if any.

Change-Id: I4e0241eea113f994cadf68bdfe647065856d3a6d
2018-03-13 10:08:36 -07:00

23 lines
452 B
INI

[tox]
minversion = 1.6
envlist = linters,docs
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
ostestr {posargs}
doc8 priorities/ specs/ doc/source README.rst
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = sphinx-build -b html doc/source doc/build/html