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
4 changed files with 8 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -0
      .testr.conf
  3. +1
    -1
      tools/test-requires
  4. +2
    -1
      tox.ini

+ 1
- 0
.gitignore View File

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

+ 4
- 0
.testr.conf 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

+ 1
- 1
tools/test-requires View File

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


+ 2
- 1
tox.ini 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


Loading…
Cancel
Save