Remove testrepository

This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.

This patch also switch coverage jobs to "stestr".

[1] https://review.openstack.org/573378

Change-Id: I242a26f901d2c543190127cf9eb266924cf392f7
changes/77/581677/4
Vu Cong Tuan 5 years ago committed by Ian Wells
parent 791c91adae
commit 3ecb357454

1
.gitignore vendored

@ -5,7 +5,6 @@ build
.tox
*.swp
*~
.testrepository/
.idea/
.#*
#*#

@ -1,9 +1,4 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./networking_vpp/tests/unit} $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list
test_path=./networking_vpp/tests
test_path=${OS_TEST_PATH:-./networking_vpp/tests/unit}
top_dir=./

@ -12,7 +12,6 @@ oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
neutron-lib>=1.6 # Apache-2.0 - and 1.6 required for consistent pep8
testrepository>=0.0.18 # Apache-2.0/BSD
testresources>=0.2.4 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
WebTest>=2.0 # MIT

@ -8,6 +8,7 @@ usedevelop = True
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
PYTHONWARNINGS=default::DeprecationWarning
OS_TEST_PATH=./networking_vpp/tests/unit
passenv = TRACE_FAILONLY
PYTHONPATH
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
@ -23,9 +24,15 @@ commands = flake8
commands = {posargs}
[testenv:cover]
setenv =
PYTHON=coverage run --source networking_vpp --parallel-mode
OS_TEST_PATH=./networking_vpp/tests/unit
commands =
python setup.py test --coverage --coverage-package-name='networking_vpp' --testr-args='{posargs}'
coverage report
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]
commands = python setup.py build_sphinx

Loading…
Cancel
Save