Browse Source

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>
changes/80/391680/1
Maciej Kucia 5 years ago
parent
commit
eb2ab2ba53
  1. 1
      .gitignore
  2. 4
      .testr.conf
  3. 2
      tools/test-requires
  4. 3
      tox.ini

1
.gitignore

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

4
.testr.conf

@ -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

2
tools/test-requires

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

3
tox.ini

@ -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

Loading…
Cancel
Save