Skip to content

Commit

Permalink
Run tests with py.test
Browse files Browse the repository at this point in the history
  • Loading branch information
yprez committed Jan 18, 2016
1 parent 2c97353 commit 0b4e24b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.egg-info
.coverage
.tox
.cache

/MANIFEST
/dist
Expand Down
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ deps =
django17: Django>=1.7,<1.8
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
coverage: pytest-cov==2.2.0
pytest==2.6.3
pytest-django==2.9.1
setenv =
PYTHONPATH = .
DJANGO_SETTINGS_MODULE=test_settings
commands =
django-admin.py test logentry_admin
py.test logentry_admin/tests.py

[testenv:coverage]
deps = coverage
[testenv:coverage-django19]
commands =
coverage run --source=logentry_admin {envbindir}/django-admin.py test logentry_admin
coverage report --show-missing --fail-under=90
py.test logentry_admin/tests.py --cov=logentry_admin \
--cov-report=term-missing --cov-fail-under=90

[testenv:flake8]
deps = flake8==2.5.1
Expand Down

0 comments on commit 0b4e24b

Please sign in to comment.