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:
parent
6010cbf18e
commit
4ffafc861c
3
.coveragerc
Normal file
3
.coveragerc
Normal file
@ -0,0 +1,3 @@
|
||||
[run]
|
||||
branch = True
|
||||
omit = shotgun/test/*
|
@ -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
|
||||
|
4
tox.ini
4
tox.ini
@ -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:}
|
||||
|
Loading…
Reference in New Issue
Block a user