Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Switch to stestr
Browse files Browse the repository at this point in the history
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I06a45ffdb95e4c79edeca179254f25252d9fef6e
  • Loading branch information
Vu Cong Tuan committed Jul 5, 2018
1 parent ba22d42 commit eaf1254
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -25,8 +25,6 @@ pip-log.txt
# Unit test / coverage reports
.coverage
.tox
nosetests.xml
.testrepository
.stestr
.venv

Expand Down
1 change: 0 additions & 1 deletion lower-constraints.txt
Expand Up @@ -143,7 +143,6 @@ stestr==2.0.0
stevedore==1.28.0
Tempita==0.5.2
tenacity==4.9.0
testrepository==0.0.20
testresources==2.0.0
testscenarios==0.4
testtools==2.2.0
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Expand Up @@ -17,6 +17,7 @@ testresources>=2.0.0 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
redis>=2.10.0 # MIT
stestr>=2.0.0 # Apache-2.0
hiredis>=0.2.0 # BSD
reno>=2.5.0 # Apache-2.0
PrettyTable<0.8,>=0.7.2 # BSD
11 changes: 8 additions & 3 deletions tox.ini
Expand Up @@ -15,7 +15,7 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/re
-r{toxinidir}/test-requirements.txt
whitelist_externals = sh /bin/rm
commands = /bin/rm -f .testrepository/times.dbm
ostestr '{posargs}'
stestr run {posargs}

[testenv:fullstack]
basepython = python2.7
Expand All @@ -36,9 +36,14 @@ commands = {toxinidir}/tools/generate_config_file_samples.sh
commands = {posargs}

[testenv:cover]
setenv =
PYTHON=coverage run --source $project --parallel-mode
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage report
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report

[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
Expand Down

0 comments on commit eaf1254

Please sign in to comment.