refactor tests around py.test
This commit is contained in:
parent
1d659b1b21
commit
f69e313ce3
2
setup.py
2
setup.py
|
@ -96,4 +96,4 @@ setuptools.setup(
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'pycrypto >= 2.5'
|
'pycrypto >= 2.5'
|
||||||
],
|
],
|
||||||
cmdclass={'test': TestCommand, 'sdist': eo_sdist})
|
)
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -6,8 +6,8 @@
|
||||||
[testenv]
|
[testenv]
|
||||||
# django.contrib.auth is not tested it does not work with our templates
|
# django.contrib.auth is not tested it does not work with our templates
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
py.test --junitxml=junit.xml --cov-report xml --cov=eopayment/ tests
|
||||||
coverage run --source=. -a ./setup.py test
|
|
||||||
coverage xml
|
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
deps = coverage
|
deps = coverage
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
|
Loading…
Reference in New Issue