Merge "Replace dashes with underscore & Migrate to stestr"
This commit is contained in:
commit
c6ca7facec
|
@ -26,7 +26,7 @@ pip-log.txt
|
|||
.coverage
|
||||
.tox
|
||||
nosetests.xml
|
||||
.testrepository
|
||||
.stestr/
|
||||
.venv
|
||||
|
||||
# Translations
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[DEFAULT]
|
||||
test_path=./os_performance_tools/tests/
|
||||
top_dir=./
|
|
@ -1,7 +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:-60} \
|
||||
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
|
@ -4,3 +4,4 @@
|
|||
- publish-openstack-docs-pti
|
||||
- openstack-python35-jobs
|
||||
- openstack-python3-xena-jobs
|
||||
- openstack-cover-jobs
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
[metadata]
|
||||
name = os-performance-tools
|
||||
summary = Python scripts for use in OpenStack's QA process
|
||||
description-file =
|
||||
description_file =
|
||||
README.rst
|
||||
author = OpenStack
|
||||
author-email = openstack-discuss@lists.openstack.org
|
||||
home-page = https://docs.openstack.org/os-performance-tools/latest/
|
||||
python-requires = >=3.5
|
||||
author_email = openstack-discuss@lists.openstack.org
|
||||
home_page = https://docs.openstack.org/os-performance-tools/latest/
|
||||
python_requires = >=3.5
|
||||
classifier =
|
||||
Environment :: OpenStack
|
||||
Intended Audience :: Information Technology
|
||||
|
|
|
@ -8,5 +8,5 @@ coverage>=3.6
|
|||
python-subunit>=0.0.18
|
||||
|
||||
oslotest>=1.10.0 # Apache-2.0
|
||||
testrepository>=0.0.18
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
testscenarios>=0.4
|
||||
|
|
17
tox.ini
17
tox.ini
|
@ -1,6 +1,6 @@
|
|||
[tox]
|
||||
minversion = 3.18.0
|
||||
envlist = py36,py38,pypy,pep8
|
||||
envlist = py3,pypy,pep8
|
||||
skipsdist = True
|
||||
ignore_basepython_conflict = True
|
||||
|
||||
|
@ -10,7 +10,7 @@ usedevelop = True
|
|||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py test --slowest --testr-args='{posargs}'
|
||||
commands = stestr run --slowest {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8
|
||||
|
@ -19,7 +19,18 @@ commands = flake8
|
|||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||
allowlist_externals = find
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
PYTHON=coverage run --source os_performance_tools --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
find . -type f -name "*.pyc" -delete
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
|
||||
[testenv:docs]
|
||||
deps =
|
||||
|
|
Loading…
Reference in New Issue