Skip to content

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: I7079a92f972f5cb21e0d2077dd029701930a3590
  • Loading branch information
Vu Cong Tuan committed Jul 30, 2018
1 parent c7b8212 commit 09475c2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ doc/build
heatclient/versioninfo
*.egg-info
*.log
.testrepository
.stestr/

# Files created by releasenotes build
releasenotes/build
3 changes: 3 additions & 0 deletions .stestr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./heatclient/tests/unit}
top_dir=./
4 changes: 0 additions & 4 deletions .testr.conf

This file was deleted.

3 changes: 1 addition & 2 deletions lower-constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ six==1.10.0
snowballstemmer==1.2.1
Sphinx==1.6.2
sphinxcontrib-websupport==1.0.1
stestr==1.0.0
stestr==2.0.0
stevedore==1.20.0
tempest==17.1.0
testrepository==0.0.18
testscenarios==0.4
testtools==2.2.0
traceback2==1.4.0
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requests-mock>=1.2.0 # Apache-2.0
mock>=2.0.0 # BSD
mox3>=0.20.0 # Apache-2.0
python-openstackclient>=3.12.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
tempest>=17.1.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = find . -type f -name "*.py[c|o]" -delete
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
whitelist_externals = find

[testenv:debug]
Expand Down Expand Up @@ -45,8 +45,13 @@ passenv = OS_*

[testenv:cover]
basepython = python3
setenv =
PYTHON=coverage run --source heatclient --parallel-mode
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

[testenv:docs]
Expand Down

0 comments on commit 09475c2

Please sign in to comment.