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: I0ec7bc7926e57b243e38b2c696815e648d0b3f61
This commit is contained in:
parent
0490f7e1d0
commit
db99a4ab79
|
@ -15,7 +15,7 @@ coverage.xml
|
||||||
*.py[co]
|
*.py[co]
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.log
|
*.log
|
||||||
.testrepository
|
.stestr/
|
||||||
subunit.log
|
subunit.log
|
||||||
.eggs
|
.eggs
|
||||||
AUTHORS
|
AUTHORS
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[DEFAULT]
|
||||||
|
test_path=${OS_TEST_PATH:-./freezer/tests/unit}
|
||||||
|
top_dir=./
|
||||||
|
group_regex=([^\.]+\.)+
|
|
@ -1,9 +0,0 @@
|
||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|
||||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
|
||||||
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
|
|
||||||
${PYTHON:-python} -m subunit.run discover -s ${OS_TEST_PATH:-./freezer/tests/unit} -t . $LISTOPT $IDOPTION
|
|
||||||
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
||||||
group_regex=([^\.]+\.)+
|
|
|
@ -113,7 +113,7 @@ sphinxcontrib-websupport==1.0.1
|
||||||
stestr==2.0.0
|
stestr==2.0.0
|
||||||
stevedore==1.28.0
|
stevedore==1.28.0
|
||||||
tempest==17.1.0
|
tempest==17.1.0
|
||||||
testrepository==0.0.18
|
stestr==2.0.0
|
||||||
testtools==2.2.0
|
testtools==2.2.0
|
||||||
traceback2==1.4.0
|
traceback2==1.4.0
|
||||||
tzlocal==1.5.1
|
tzlocal==1.5.1
|
||||||
|
|
|
@ -9,7 +9,7 @@ mock>=2.0.0 # BSD
|
||||||
pylint==1.4.5 # GPLv2
|
pylint==1.4.5 # GPLv2
|
||||||
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
||||||
openstackdocstheme>=1.18.1 # Apache-2.0
|
openstackdocstheme>=1.18.1 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
stestr>=2.0.0 # Apache-2.0
|
||||||
testtools>=2.2.0 # MIT
|
testtools>=2.2.0 # MIT
|
||||||
reno>=2.5.0 # Apache-2.0
|
reno>=2.5.0 # Apache-2.0
|
||||||
astroid<1.4.0 # LGPLv2.1 # breaks pylint 1.4.4
|
astroid<1.4.0 # LGPLv2.1 # breaks pylint 1.4.4
|
||||||
|
|
38
tox.ini
38
tox.ini
|
@ -22,7 +22,19 @@ passenv =
|
||||||
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||||
|
|
||||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv =
|
||||||
|
VIRTUAL_ENV={envdir}
|
||||||
|
OS_TEST_PATH = ./freezer/tests/unit
|
||||||
|
PYTHON=coverage run --source freezer --parallel-mode
|
||||||
|
commands =
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
|
stestr run '{posargs}'
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
coverage report -m
|
||||||
|
rm -f .coverage
|
||||||
|
rm -rf .testrepository
|
||||||
|
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
find
|
find
|
||||||
|
@ -37,36 +49,12 @@ commands = {posargs}
|
||||||
|
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
setenv =
|
|
||||||
OS_TEST_PATH = ./freezer/tests/unit
|
|
||||||
commands =
|
|
||||||
find . -type f -name "*.pyc" -delete
|
|
||||||
python setup.py testr --coverage --testr-args="{posargs}"
|
|
||||||
coverage report -m
|
|
||||||
rm -f .coverage
|
|
||||||
rm -rf .testrepository
|
|
||||||
|
|
||||||
[testenv:py35]
|
[testenv:py35]
|
||||||
basepython = python3.5
|
basepython = python3.5
|
||||||
setenv =
|
|
||||||
OS_TEST_PATH = ./freezer/tests/unit
|
|
||||||
commands =
|
|
||||||
find . -type f -name "*.pyc" -delete
|
|
||||||
python setup.py testr --coverage --testr-args="{posargs}"
|
|
||||||
coverage report -m
|
|
||||||
rm -f .coverage
|
|
||||||
rm -rf .testrepository
|
|
||||||
|
|
||||||
[testenv:py36]
|
[testenv:py36]
|
||||||
basepython = python3.6
|
basepython = python3.6
|
||||||
setenv =
|
|
||||||
OS_TEST_PATH = ./freezer/tests/unit
|
|
||||||
commands =
|
|
||||||
find . -type f -name "*.pyc" -delete
|
|
||||||
python setup.py testr --coverage --testr-args="{posargs}"
|
|
||||||
coverage report -m
|
|
||||||
rm -f .coverage
|
|
||||||
rm -rf .testrepository
|
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
whitelist_externals = rm
|
whitelist_externals = rm
|
||||||
|
|
Loading…
Reference in New Issue