Skip to content

Commit

Permalink
Add test coverage (#54)
Browse files Browse the repository at this point in the history
* Configure test coverage

* Added codecov badge
  • Loading branch information
capelastegui authored Oct 5, 2018
1 parent bdc1aa1 commit 888b2ca
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = False
source = anticipy

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ deactivate.*
config.local.*
setup.py~
.idea/
htmlcov/
docs/source/.static/
*.png
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ install:
fi
- python --version
- pip install .
- pip install codecov

script:
- python -m unittest discover
- coverage run -m unittest discover
- pycodestyle ./ --ignore=E402,W

after_success:
- codecov
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Latest Release](https://img.shields.io/pypi/v/anticipy.svg)](https://img.shields.io/pypi/v/anticipy.svg)
[![Build Status](https://travis-ci.com/sky-uk/anticipy.svg?branch=master)](https://travis-ci.com/sky-uk/anticipy)
[![Documentation Status](https://readthedocs.org/projects/anticipy/badge/?version=latest)](https://anticipy.readthedocs.io/en/latest/?badge=latest)

[![Code Coverage](https://codecov.io/github/sky-uk/anticipy/branch/master/graph/badge.svg)](https://codecov.io/github/sky-uk/anticipy/)


# Anticipy
Expand Down

0 comments on commit 888b2ca

Please sign in to comment.