wlonk / ex-libris-webapp

Manage your library, right from your Dropbox.
https://exlibris.ink/
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Backfill tests. #7

Closed wlonk closed 8 years ago

wlonk commented 8 years ago

There are no real ones yet.

wlonk commented 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
wlonk commented 8 years ago

And some of the following are dev-requirements:

pytest
pytest-cov
pytest-django
pytest-env
pytest-mock
factory_boy
vcrpy