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: Ic0ddaae3bd0a4ad4e34264429f717a292e17a1c9
Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
Charles Short 2018-06-14 09:24:16 -04:00 committed by Witold Bedyk
parent b9c2c53f69
commit 5e2687f637
4 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ ChangeLog
monasca_transform.egg-info monasca_transform.egg-info
tools/vagrant/.vagrant tools/vagrant/.vagrant
doc/build/* doc/build/*
.stestr

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./tests/unit}
top_dir=./

View File

@ -7,7 +7,7 @@ flake8<2.6.0,>=2.5.4 # MIT
nose>=1.3.7 # LGPL nose>=1.3.7 # LGPL
mock>=2.0.0 # BSD mock>=2.0.0 # BSD
fixtures>=3.0.0 # Apache-2.0/BSD fixtures>=3.0.0 # Apache-2.0/BSD
os-testr>=1.0.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0
# required to build documentation # required to build documentation
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
#oslosphinx>=4.7.0 # Apache-2.0 #oslosphinx>=4.7.0 # Apache-2.0

View File

@ -19,7 +19,7 @@ whitelist_externals = bash
find find
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
ostestr {posargs} stestr run {posargs}
[testenv:functional] [testenv:functional]
basepython = python2.7 basepython = python2.7
@ -28,7 +28,7 @@ setenv = {[testenv]setenv}
SPARK_SCALA_VERSION=2.10 SPARK_SCALA_VERSION=2.10
OS_TEST_PATH=tests/functional OS_TEST_PATH=tests/functional
commands = commands =
ostestr --serial {posargs} stestr run --serial {posargs}
[testenv:functional-py35] [testenv:functional-py35]
basepython = python3.5 basepython = python3.5
@ -36,7 +36,7 @@ setenv = {[testenv]setenv}
SPARK_HOME=/opt/spark/current SPARK_HOME=/opt/spark/current
OS_TEST_PATH=tests/functional OS_TEST_PATH=tests/functional
commands = commands =
ostestr --serial {posargs} stestr run --serial {posargs}
[testenv:pep8] [testenv:pep8]
commands = flake8 commands = flake8