Merge "tests: replace .testr.conf with .stestr.conf"
This commit is contained in:
commit
c05aeb8226
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,10 +1,11 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
*.log
|
*.log
|
||||||
.glance-venv
|
.glance-venv
|
||||||
.venv
|
.stestr/*
|
||||||
.testrepository/
|
.testrepository/
|
||||||
.tox
|
.tox
|
||||||
.coverage*
|
.coverage*
|
||||||
|
.venv
|
||||||
cover/*
|
cover/*
|
||||||
covhtml
|
covhtml
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=${TEST_PATH:-./glance/tests}
|
||||||
|
top_dir=./
|
@ -1,8 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|
||||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
|
||||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
|
|
||||||
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./glance/tests} $LISTOPT $IDOPTION
|
|
||||||
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
11
tox.ini
11
tox.ini
@ -24,7 +24,6 @@ install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstac
|
|||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
bandit: bandit -c bandit.yaml -r glance -n5 -p gate
|
bandit: bandit -c bandit.yaml -r glance -n5 -p gate
|
||||||
cover: python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
|
|
||||||
debug: oslo_debug_helper {posargs}
|
debug: oslo_debug_helper {posargs}
|
||||||
debug{-py27,-py35}: oslo_debug_helper {posargs}
|
debug{-py27,-py35}: oslo_debug_helper {posargs}
|
||||||
docs: python setup.py build_sphinx
|
docs: python setup.py build_sphinx
|
||||||
@ -43,6 +42,16 @@ commands = ostestr --slowest {posargs}
|
|||||||
# conditionals in [testenv], use separate environment.
|
# conditionals in [testenv], use separate environment.
|
||||||
commands = ostestr --slowest {posargs}
|
commands = ostestr --slowest {posargs}
|
||||||
|
|
||||||
|
[testenv:cover]
|
||||||
|
setenv =
|
||||||
|
{[testenv]setenv}
|
||||||
|
PYTHON=coverage run --source glance --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
flake8 {posargs}
|
flake8 {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user