Add a new scenario tox env

The scenario environment forces serial execution, and it selects
all scenario tests, including those tagged as slow.

Change-Id: I3ad362da88f770cd03f32534683888ea59cfe5c6
This commit is contained in:
Andrea Frittoli 2017-03-06 15:11:13 +00:00
parent 5e1543f753
commit b838af91f7
1 changed files with 10 additions and 0 deletions

10
tox.ini
View File

@ -97,6 +97,16 @@ commands =
find . -type f -name "*.pyc" -delete
tempest run --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario))' {posargs}
[testenv:scenario]
envdir = .tox/tempest
sitepackages = {[tempestenv]sitepackages}
setenv = {[tempestenv]setenv}
deps = {[tempestenv]deps}
# The regex below is used to select all scenario tests
commands =
find . -type f -name "*.pyc" -delete
tempest run --serial --regex '(^tempest\.scenario)' {posargs}
[testenv:smoke]
envdir = .tox/tempest
sitepackages = {[tempestenv]sitepackages}