Skip to content

Commit

Permalink
Add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoxy committed Aug 3, 2018
1 parent 01592fb commit 837e0de
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
source=graphene_django_optimizer

[report]
precision = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ venv3/
.pytest_cache/
dist/
build/
.coverage
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ matrix:
install:
- pip install -r dev-env-requirements.txt
- pip install django==$DJANGO_VERSION
- pip install codecov
script:
- ./setup.py test
after_success:
- codecov
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# graphene-django-optimizer

[![build status](https://img.shields.io/travis/tfoxy/graphene-django-optimizer.svg)](https://travis-ci.org/tfoxy/graphene-django-optimizer)
[![coverage](https://img.shields.io/codecov/c/github/tfoxy/graphene-django-optimizer.svg)](https://codecov.io/gh/tfoxy/graphene-django-optimizer)
[![PyPI version](https://img.shields.io/pypi/v/graphene-django-optimizer.svg)](https://pypi.org/project/graphene-django-optimizer/)
![python version](https://img.shields.io/pypi/pyversions/graphene-django-optimizer.svg)
![django version](https://img.shields.io/pypi/djversions/graphene-django-optimizer.svg)
Expand Down
1 change: 1 addition & 0 deletions dev-env-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ graphene==2.1
graphene-django==2.0.0
pytest==3.5.1
pytest-django==3.2.1
pytest-cov==2.5.1
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test=pytest

[tool:pytest]
addopts = --verbose
addopts = -vv --cov
python_files = tests/test_*.py
django_find_project = false
DJANGO_SETTINGS_MODULE = tests.settings
Expand Down

0 comments on commit 837e0de

Please sign in to comment.