Merge "Add separate env for functional tests"

This commit is contained in:
Zuul 2018-10-31 15:08:30 +00:00 committed by Gerrit Code Review
commit 83fa9bbe82
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./novajoin/tests}
test_path=${OS_TEST_PATH:-./novajoin/tests/unit}
top_dir=./

View File

@ -67,3 +67,12 @@ commands = sphinx-build -W -b html doc/source doc/build/html
sitepackages = False
envdir = {toxworkdir}/pep8
commands = oslo-config-generator --config-file=files/novajoin-config-generator.conf
[testenv:functional]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
setenv =
OS_TEST_PATH={toxinidir}/novajoin/tests/functional
commands =
/usr/bin/find . -type f -name "*.py[c|o]" -delete
stestr run --slowest {posargs}