Add separate env for functional tests

This is a first step. New functional tests and configuration
for executing them in CI will follow.

Change-Id: Ia78582bcd1be3b05c26be6223b9ee3c79c1aec0a
This commit is contained in:
Grzegorz Grasza 2018-10-24 16:07:47 +02:00
parent 01be20f981
commit dd2a2c528a
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}