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: I8f70f7d8a3d18301559c0eb47e6a64c8b5100d39
This commit is contained in:
parent
0c4231e422
commit
dc3531fa10
2
.gitignore
vendored
2
.gitignore
vendored
@ -23,9 +23,7 @@ pip-log.txt
|
|||||||
# Unit test / coverage reports
|
# Unit test / coverage reports
|
||||||
.coverage*
|
.coverage*
|
||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
|
||||||
.stestr/
|
.stestr/
|
||||||
.testrepository
|
|
||||||
.venv
|
.venv
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
test_path=${OS_TEST_PATH:-./watcher/tests}
|
test_path=./watcher/tests
|
||||||
top_dir=./
|
top_dir=./
|
||||||
|
|
||||||
|
@ -1,7 +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:-./watcher/tests} $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
@ -146,7 +146,6 @@ stevedore==1.28.0
|
|||||||
taskflow==3.1.0
|
taskflow==3.1.0
|
||||||
Tempita==0.5.2
|
Tempita==0.5.2
|
||||||
tenacity==4.9.0
|
tenacity==4.9.0
|
||||||
testrepository==0.0.20
|
|
||||||
testresources==2.0.1
|
testresources==2.0.1
|
||||||
testscenarios==0.5.0
|
testscenarios==0.5.0
|
||||||
testtools==2.3.0
|
testtools==2.3.0
|
||||||
|
@ -2,27 +2,27 @@
|
|||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
coverage!=4.4 # Apache-2.0
|
coverage>=4.5.1 # Apache-2.0
|
||||||
doc8 # Apache-2.0
|
doc8>=0.8.0 # Apache-2.0
|
||||||
freezegun # Apache-2.0
|
freezegun>=0.3.10 # Apache-2.0
|
||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
||||||
mock # BSD
|
mock>=2.0.0 # BSD
|
||||||
oslotest # Apache-2.0
|
oslotest>=3.3.0 # Apache-2.0
|
||||||
os-testr # Apache-2.0
|
os-testr>=1.0.0 # Apache-2.0
|
||||||
testrepository # Apache-2.0/BSD
|
testscenarios>=0.5.0 # Apache-2.0/BSD
|
||||||
testscenarios # Apache-2.0/BSD
|
testtools>=2.3.0 # MIT
|
||||||
testtools # MIT
|
stestr>=2.0.0 # Apache-2.0
|
||||||
|
|
||||||
# Doc requirements
|
# Doc requirements
|
||||||
openstackdocstheme # Apache-2.0
|
openstackdocstheme>=1.20.0 # Apache-2.0
|
||||||
sphinx!=1.6.6,!=1.6.7 # BSD
|
sphinx>=1.6.5,!=1.6.6,!=1.6.7 # BSD
|
||||||
sphinxcontrib-pecanwsme # Apache-2.0
|
sphinxcontrib-pecanwsme>=0.8.0 # Apache-2.0
|
||||||
|
|
||||||
# api-ref
|
# api-ref
|
||||||
os-api-ref # Apache-2.0
|
os-api-ref>=1.4.0 # Apache-2.0
|
||||||
|
|
||||||
# releasenotes
|
# releasenotes
|
||||||
reno # Apache-2.0
|
reno>=2.7.0 # Apache-2.0
|
||||||
|
|
||||||
# bandit
|
# bandit
|
||||||
bandit>=1.1.0 # Apache-2.0
|
bandit>=1.1.0 # Apache-2.0
|
||||||
|
7
tox.ini
7
tox.ini
@ -31,8 +31,13 @@ commands = {posargs}
|
|||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source watcher --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
stestr run '{posargs}'
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user