Remove testrepository and .testr.conf
This commit is a follow-up of "switch to using stestr" which was merged already [1]. After switch to using stestr, testrepository and .testr.conf are unnecessary and should be removed. This patch also switch from "testr" to "stestr" for coverage jobs. [1] https://review.openstack.org/575430 Change-Id: Ide998f902197ff24e28e998daa8defda090fab3f
This commit is contained in:
parent
78f4d7a5a4
commit
077ea431ec
|
@ -1,7 +0,0 @@
|
||||||
[DEFAULT]
|
|
||||||
test_command=
|
|
||||||
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./tests/unit} $LISTOPT $IDOPTION
|
|
||||||
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
||||||
group_regex=.*(test_cert_setup)
|
|
|
@ -74,7 +74,6 @@ stestr==2.0.0
|
||||||
stevedore==1.20.0
|
stevedore==1.20.0
|
||||||
tabulate==0.8.2
|
tabulate==0.8.2
|
||||||
tenacity==4.9.0
|
tenacity==4.9.0
|
||||||
testrepository==0.0.18
|
|
||||||
testtools==2.3.0
|
testtools==2.3.0
|
||||||
tooz==1.58.0
|
tooz==1.58.0
|
||||||
traceback2==1.4.0
|
traceback2==1.4.0
|
||||||
|
|
|
@ -11,6 +11,5 @@ stestr>=2.0.0 # Apache-2.0
|
||||||
# required to build documentation
|
# required to build documentation
|
||||||
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
||||||
#oslosphinx>=4.7.0 # Apache-2.0
|
#oslosphinx>=4.7.0 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
|
||||||
# computes code coverage percentages
|
# computes code coverage percentages
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
|
|
9
tox.ini
9
tox.ini
|
@ -47,9 +47,14 @@ commands = {posargs}
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
# Also do not run test_coverage_ext tests while gathering coverage as those
|
# Also do not run test_coverage_ext tests while gathering coverage as those
|
||||||
# tests conflict with coverage.
|
# tests conflict with coverage.
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source monasca_transform --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
find monasca_transform -type f -name "*.pyc" -delete
|
find monasca_transform -type f -name "*.pyc" -delete
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
stestr run '{posargs}'
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-complexity = 30
|
max-complexity = 30
|
||||||
|
|
Loading…
Reference in New Issue