Merge "Use pytest instead of testr"

This commit is contained in:
Jenkins 2016-06-24 11:53:38 +00:00 committed by Gerrit Code Review
commit 316b0558ba
3 changed files with 8 additions and 4 deletions

2
.gitignore vendored
View File

@ -31,6 +31,8 @@ cover
.testrepository
*.sqlite
.venv
.cache
pytest_results.html
# Docs
doc/source/_build/

View File

@ -2,12 +2,13 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking<0.10,>=0.9.2
pytest>=2.7
pytest-html
coverage>=3.6 # Apache-2.0
ddt>=1.0.1 # MIT
mock>=2.0 # BSD
python-dateutil>=2.4.2 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0

View File

@ -18,7 +18,7 @@ install_command = pip install -U {opts} {packages}
usedevelop = True
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
py.test --html=pytest_results.html --durations=10 "tests/unit" {posargs}
distribute = false
basepython = python2.7
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
@ -35,7 +35,6 @@ basepython = python3.4
[testenv:venv]
commands = {posargs}
[testenv:debug]
commands = oslo_debug_helper -t tests {posargs}
@ -45,7 +44,9 @@ commands = oslo_debug_helper -t tests {posargs}
[testenv:cli]
sitepackages = True
commands = {toxinidir}/tests/ci/rally-integrated.sh
commands =
find . -type f -name "*.pyc" -delete
py.test --html=pytest_results.html --durations=10 "tests/functional" {posargs}
[testenv:cover]