Merge "Switch to stestr"

This commit is contained in:
Zuul 2018-07-18 10:37:09 +00:00 committed by Gerrit Code Review
commit 12b9fa0b49
5 changed files with 6 additions and 13 deletions

1
.gitignore vendored
View File

@ -20,7 +20,6 @@ develop-eggs/
.tox .tox
AUTHORS AUTHORS
ChangeLog ChangeLog
.testrepository
.stestr .stestr
.coverage .coverage
cover cover

View File

@ -1,7 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-120} \
${PYTHON:-python} -m subunit.run discover $DISCOVER_DIRECTORY $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -124,7 +124,6 @@ stevedore==1.28.0
sympy==1.1.1 sympy==1.1.1
Tempita==0.5.2 Tempita==0.5.2
tenacity==4.9.0 tenacity==4.9.0
testrepository==0.0.20
testresources==2.0.1 testresources==2.0.1
testscenarios==0.5.0 testscenarios==0.5.0
testtools==2.3.0 testtools==2.3.0

View File

@ -7,7 +7,6 @@ coverage>=4.5.1 # Apache-2.0
python-subunit>=1.2.0 # Apache-2.0/BSD python-subunit>=1.2.0 # Apache-2.0/BSD
oslotest>=3.3.0 # Apache-2.0 oslotest>=3.3.0 # Apache-2.0
requests-mock>=1.4.0 # Apache-2.0 requests-mock>=1.4.0 # Apache-2.0
testrepository>=0.0.20 # Apache-2.0/BSD
testscenarios>=0.5.0 # Apache-2.0/BSD testscenarios>=0.5.0 # Apache-2.0/BSD
testtools>=2.3.0 # MIT testtools>=2.3.0 # MIT
stestr>=2.0.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0

View File

@ -9,8 +9,6 @@ install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.opens
whitelist_externals = find whitelist_externals = find
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
OS_TEST_PATH=vitrage/tests/unit
DISCOVER_DIRECTORY=vitrage/tests
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
commands = commands =
stestr run --serial '{posargs}' stestr run --serial '{posargs}'
@ -42,8 +40,13 @@ commands = {posargs}
[testenv:cover] [testenv:cover]
basepython = python3 basepython = python3
setenv =
PYTHON=coverage run --source $project --parallel-mode
commands = commands =
python setup.py testr --coverage --testr-args='{posargs}' stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report coverage report
[testenv:docs] [testenv:docs]