Switch to stestr

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: I8f4fb6c486641a878950e39771834c37fdde7487
This commit is contained in:
Vu Cong Tuan 2018-07-10 16:31:34 +07:00
parent 786543cca7
commit a25b4367b5
5 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@ -7,5 +7,5 @@ build
*.swp
*.swo
*.pyc
.testrepository
.stestr/
.idea

4
.stestr.conf Normal file
View File

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

View File

@ -1,4 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -4,5 +4,5 @@
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.1.0 # Apache-2.0
testtools>=1.4.0 # MIT

View File

@ -22,7 +22,7 @@ deps =
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
flake8 {posargs}
[flake8]