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: I75bea8174b9473b0648e1fc524dd8ea25dfb666d
  • Loading branch information
Vu Cong Tuan committed Jul 11, 2018
1 parent 8762e61 commit 337e3c2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -27,7 +27,7 @@ pip-log.txt
.tox
nosetests.xml
cover
.testrepository
.stestr/
*.sqlite
.venv

Expand Down
4 changes: 4 additions & 0 deletions .stestr.conf
@@ -0,0 +1,4 @@
[DEFAULT]
test_path=./osprofiler/tests/unit
top_dir=./

4 changes: 0 additions & 4 deletions .testr.conf

This file was deleted.

2 changes: 1 addition & 1 deletion lower-constraints.txt
Expand Up @@ -18,6 +18,6 @@ reno===2.5.0
requests===2.14.2
six===1.10.0
sphinx===1.6.2
testrepository===0.0.18
stestr==2.0.0
testtools===2.2.0
WebOb===1.7.1
2 changes: 1 addition & 1 deletion test-requirements.txt
Expand Up @@ -3,7 +3,7 @@ hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
coverage>=4.0 # Apache-2.0
ddt>=1.0.1 # MIT
mock>=2.0.0 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT

openstackdocstheme>=1.18.1 # Apache-2.0
Expand Down
13 changes: 8 additions & 5 deletions tox.ini
Expand Up @@ -14,12 +14,9 @@ deps =
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}
usedevelop = True
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}
distribute = false

[testenv:py27]
basepython = python2.7

[testenv:functional]
basepython = python2.7
setenv = {[testenv]setenv}
Expand Down Expand Up @@ -47,7 +44,13 @@ commands = {posargs}

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

[testenv:docs]
basepython = python3
Expand Down

0 comments on commit 337e3c2

Please sign in to comment.