Using stestr

Change-Id: I6274b15d887dc270aec600706bbf789db0dfc415
This commit is contained in:
zhurong 2018-08-03 12:05:18 +08:00
parent ed8555b430
commit 82aa60445c
4 changed files with 7 additions and 11 deletions

3
.gitignore vendored
View File

@ -63,3 +63,6 @@ etc/solum/solum.policy.yaml.sample
#User Config file for Solum
etc/solum/solum.conf
!/.stestr.conf
.stestr/

3
.stestr.conf Normal file
View File

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

View File

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

View File

@ -15,7 +15,7 @@ whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
rm -f .testrepository/times.dbm
python setup.py testr --slowest --testr-args='{posargs}'
stestr run {posargs}
[testenv:pep8]
basepython = python3