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 "test" to "stestr" for coverage job . [1] https://review.openstack.org/571716 Change-Id: I6b506a19edf06a5bc40472f84a51eaae98583a62
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,7 +13,6 @@ releasenotes/build/
|
|||||||
*.egg*
|
*.egg*
|
||||||
monclient/versioninfo
|
monclient/versioninfo
|
||||||
*.log
|
*.log
|
||||||
.testrepository
|
|
||||||
.pydevproject
|
.pydevproject
|
||||||
.project
|
.project
|
||||||
.idea
|
.idea
|
||||||
|
@@ -1,9 +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 $LISTOPT $IDOPTION
|
|
||||||
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
||||||
group_regex=monascaclient\.tests(?:\.|_)([^_]+)
|
|
@@ -70,7 +70,6 @@ Sphinx==1.6.5
|
|||||||
sphinxcontrib-websupport==1.0.1
|
sphinxcontrib-websupport==1.0.1
|
||||||
stestr==1.0.0
|
stestr==1.0.0
|
||||||
stevedore==1.20.0
|
stevedore==1.20.0
|
||||||
testrepository==0.0.18
|
|
||||||
testscenarios==0.4
|
testscenarios==0.4
|
||||||
testtools==2.2.0
|
testtools==2.2.0
|
||||||
traceback2==1.4.0
|
traceback2==1.4.0
|
||||||
|
@@ -8,7 +8,6 @@ bandit>=1.1.0 # Apache-2.0
|
|||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
stestr>=1.0.0
|
stestr>=1.0.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
testtools>=2.2.0 # MIT
|
testtools>=2.2.0 # MIT
|
||||||
|
|
||||||
|
12
tox.ini
12
tox.ini
@@ -24,11 +24,15 @@ commands =
|
|||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source monascaclient --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
python setup.py test --coverage --testr-args='{posargs}' \
|
stestr run '{posargs}'
|
||||||
--coverage-package-name=monascaclient --omit=monascaclient/tests/*
|
coverage combine
|
||||||
coverage report
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
coverage report
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
Reference in New Issue
Block a user