Switch to using stestr

According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate. Let's switch it then.

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

Change-Id: Id31d458418d904b568be0adf98d5b579cfd841cd
Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
Charles Short 2018-06-15 17:38:47 -04:00
parent 3115cdca8f
commit 785c29c22f
4 changed files with 8 additions and 4 deletions

3
.gitignore vendored
View File

@ -11,4 +11,5 @@ ChangeLog
.coverage
cover/
.testrepository/
doc/build/
doc/build/
.stestr

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=./tests
top_dir=./

View File

@ -5,9 +5,9 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
bandit>=1.1.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
mock>=2.0.0 # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
oslosphinx>=4.7.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
os-testr>=1.0.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
openstackdocstheme>=1.18.1 # Apache-2.0

View File

@ -21,7 +21,7 @@ whitelist_externals = bash
rm
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr {posargs}
stestr run {posargs}
[testenv:cover]
basepython = python2.7