Switch from testr to pytest in shotgun

testr is simply bad.

Also upgraded some of the test dependencies to
recent versions.

Change-Id: I822d6806d02539b34243775db3cf6bb1a9851ae8
This commit is contained in:
Sebastian Kalinowski 2015-09-22 11:00:55 +02:00
parent 6010cbf18e
commit 4ffafc861c
3 changed files with 9 additions and 7 deletions

3
.coveragerc Normal file
View File

@ -0,0 +1,3 @@
[run]
branch = True
omit = shotgun/test/*

View File

@ -1,5 +1,4 @@
hacking>=0.8.0,<0.9
mock==1.0.1
testrepository>=0.0.18
unittest2
discover
mock==1.3.0
unittest2==1.1.0
pytest==2.8.0
pytest-cov==2.1.0

View File

@ -9,7 +9,7 @@ install_command = pip install --allow-external -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs:}'
py.test -vv {posargs:shotgun/test}
[tox:jenkins]
downloadcache = ~/cache/pip
@ -23,7 +23,7 @@ commands =
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage {posargs:shotgun}
py.test -vv --cov=shotgun {posargs:shotgun/test}
[testenv:venv]
commands = {posargs:}