Use ostestr instead of nosetest

This change aligns packstack unit tests runner with other Open Stack projects

Change-Id: I588f12a163e64d90a51f35e98ea20ff691339baa
Signed-off-by: Maciej Kucia <maciej@kucia.net>
This commit is contained in:
Maciej Kucia 2016-10-30 20:51:54 +01:00
parent 659eeefc23
commit eb2ab2ba53
4 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.swp
*.log
.tox
.testrepository/
vendor/*
Gemfile.lock
packstack.egg-info

4
.testr.conf Normal file
View File

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

View File

@ -1,4 +1,4 @@
nose
os-testr>=0.4.1 # Apache-2.0
coverage
hacking>=0.9.5,<0.10
netaddr

View File

@ -10,7 +10,8 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = nosetests {posargs}
commands = /usr/bin/find . -type f -name "*.pyc" -delete
ostestr {posargs}
[tox:jenkins]
sitepackages = True