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:
parent
f0be78d01f
commit
1b4d88af33
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,7 +13,6 @@ releasenotes/build/
|
||||
*.egg*
|
||||
monclient/versioninfo
|
||||
*.log
|
||||
.testrepository
|
||||
.pydevproject
|
||||
.project
|
||||
.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
|
||||
stestr==1.0.0
|
||||
stevedore==1.20.0
|
||||
testrepository==0.0.18
|
||||
testscenarios==0.4
|
||||
testtools==2.2.0
|
||||
traceback2==1.4.0
|
||||
|
@ -8,7 +8,6 @@ bandit>=1.1.0 # Apache-2.0
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
stestr>=1.0.0
|
||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||
testscenarios>=0.4 # Apache-2.0/BSD
|
||||
testtools>=2.2.0 # MIT
|
||||
|
||||
|
12
tox.ini
12
tox.ini
@ -24,11 +24,15 @@ commands =
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python2.7
|
||||
setenv =
|
||||
PYTHON=coverage run --source monascaclient --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
python setup.py test --coverage --testr-args='{posargs}' \
|
||||
--coverage-package-name=monascaclient --omit=monascaclient/tests/*
|
||||
coverage report
|
||||
coverage erase
|
||||
stestr run '{posargs}'
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
|
||||
[testenv:debug]
|
||||
basepython = python3
|
||||
|
Loading…
Reference in New Issue
Block a user