Browse Source

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: I761feb4cfcdc9347cd3f74b8b355c28476301127
changes/71/581271/2
Vu Cong Tuan 3 years ago
parent
commit
e1d3430575
5 changed files with 13 additions and 9 deletions
  1. +1
    -2
      .gitignore
  2. +4
    -0
      .stestr.conf
  3. +0
    -4
      .testr.conf
  4. +1
    -1
      test-requirements.txt
  5. +7
    -2
      tox.ini

+ 1
- 2
.gitignore View File

@ -24,9 +24,8 @@ pip-log.txt
# Unit test / coverage reports
.coverage
cover
.testrepository
.stestr/
.tox
nosetests.xml
# Translations
*.mo


+ 4
- 0
.stestr.conf View File

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

+ 0
- 4
.testr.conf View File

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

+ 1
- 1
test-requirements.txt View File

@ -8,6 +8,6 @@ fixtures>=3.0.0 # Apache-2.0/BSD
mock>=2.0.0 # BSD
python-subunit>=1.0.0 # Apache-2.0/BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT

+ 7
- 2
tox.ini View File

@ -11,7 +11,7 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
[tox:jenkins]
sitepackages = True
@ -22,8 +22,13 @@ commands = flake8
[testenv:cover]
basepython = python3
setenv =
PYTHON=coverage run --source os_collect_config --parallel-mode
commands =
python setup.py test --coverage --coverage-package-name=os_collect_config
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:venv]
basepython = python3


Loading…
Cancel
Save