Skip to content

Commit 203251d

Browse files
committed
Add .stestr.conf configuration
os-testr has moved over to use stestr instead of testr. While this is usually compaible with existing settings, there is a warning that is emitted when .stestr.conf is not present. It is usually able to fall back to parsing the .testr.conf file, but to be more correct and to prevent future problems we should update the config. Change-Id: If553a64f5dded2d47025c947a91f13091f3f5d14
1 parent 71aee9e commit 203251d

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

‎.stestr.conf‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[DEFAULT]
2+
test_path=${OS_TEST_PATH:-./cinderclient/tests/unit}
3+
top_dir=./

‎.testr.conf‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎tox.ini‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ setenv =
1212
VIRTUAL_ENV={envdir}
1313
BRANCH_NAME=master
1414
CLIENT_NAME=python-cinderclient
15+
OS_TEST_PATH=./cinderclient/tests/unit
16+
OS_STDOUT_CAPTURE=1
17+
OS_STDERR_CAPTURE=1
18+
OS_TEST_TIMEOUT=60
1519
passenv = *_proxy *_PROXY
1620

1721
deps = -r{toxinidir}/requirements.txt
@@ -33,9 +37,14 @@ whitelist_externals = bash
3337
commands = {posargs}
3438

3539
[testenv:cover]
40+
setenv =
41+
{[testenv]setenv}
42+
PYTHON=coverage run --source cinderclient --parallel-mode
3643
commands =
37-
python setup.py testr --coverage --testr-args='{posargs}'
38-
coverage report
44+
stestr run {posargs}
45+
coverage combine
46+
coverage html -d cover
47+
coverage xml -o cover/coverage.xml
3948

4049
[testenv:docs]
4150
commands=

0 commit comments

Comments
 (0)