Switch to stestr
stestr is maintained project to which all Openstack projects should use. Change-Id: I18a83ef1909e758e82f7e9d888d65363a4528249
This commit is contained in:
parent
ae176c791f
commit
90cf6a6dbe
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
test_path=${TEST_PATH:-./tripleo_heat_templates/tests}
|
||||
top_dir=./
|
@ -1,4 +0,0 @@
|
||||
[DEFAULT]
|
||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
@ -11,6 +11,7 @@ python-subunit>=1.0.0 # Apache-2.0/BSD
|
||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||
testscenarios>=0.4 # Apache-2.0/BSD
|
||||
testtools>=2.2.0 # MIT
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
yaql>=1.1.3 # Apache 2.0 License
|
||||
ansible-runner>=1.4.2 # Apache
|
||||
|
14
tox.ini
14
tox.ini
@ -13,7 +13,9 @@ deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||||
commands =
|
||||
stestr run {posargs}
|
||||
stestr slowest
|
||||
setenv =
|
||||
LC_ALL=en_US.UTF-8
|
||||
|
||||
@ -72,7 +74,15 @@ allowlist_externals =
|
||||
commands = bash -c tools/releasenotes_tox.sh
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py test --coverage --coverage-package-name=tripleo_heat_templates --testr-args='{posargs}'
|
||||
setenv =
|
||||
PYTHON=coverage run --source tripleo_heat_templates --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
|
||||
[testenv:genconfig]
|
||||
commands =
|
||||
|
Loading…
x
Reference in New Issue
Block a user