Closed wlonk closed 8 years ago
Something like:
@task(default=True, alias='test')
def run_tests():
"""
Run tests, with coverage.
"""
local('py.test --cov=. --cov-report=html')
and
[pytest]
norecursedirs=.git
python_files=*.py
DJANGO_SETTINGS_MODULE=project.settings
env=
CELERY_ALWAYS_EAGER=True
[coverage:run]
omit=
*/tests/*
*/migrations/*
*/management/commands/*
fabfile.py
manage.py
version.py
[coverage:report]
fail_under=75
And some of the following are dev-requirements:
pytest
pytest-cov
pytest-django
pytest-env
pytest-mock
factory_boy
vcrpy
There are no real ones yet.