refactor tests around py.test

This commit is contained in:
Benjamin Dauvergne 2016-02-01 17:59:01 +01:00
parent 1d659b1b21
commit f69e313ce3
5 changed files with 4 additions and 4 deletions

View File

@ -96,4 +96,4 @@ setuptools.setup(
install_requires=[
'pycrypto >= 2.5'
],
cmdclass={'test': TestCommand, 'sdist': eo_sdist})
)

View File

@ -6,8 +6,8 @@
[testenv]
# django.contrib.auth is not tested it does not work with our templates
commands =
coverage erase
coverage run --source=. -a ./setup.py test
coverage xml
py.test --junitxml=junit.xml --cov-report xml --cov=eopayment/ tests
usedevelop = True
deps = coverage
pytest
pytest-cov