Skip to content

Commit

Permalink
Experimenting with code coverage #9
Browse files Browse the repository at this point in the history
  • Loading branch information
IanGrimstead authored and IanGrimstead committed Aug 21, 2018
1 parent c1e4401 commit f2a5b00
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = True
source = scripts

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
language: python
python:
- "3.6"
# command to install dependencies

install:
# command to install dependencies
- python setup.py install
# also need to download punkt tokeniser data
- travis_wait 30 python -m nltk.downloader punkt
# command to run tests

script:
- pytest
# for codecov support
- pip install pytest pytest-cov
# command to run tests
- pytest --cov=./

after_success:
- bash <(curl -s https://codecov.io/bash)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![build status](
http://img.shields.io/travis/datasciencecampus/patent_app_detect/master.svg?style=flat)](
https://travis-ci.org/datasciencecampus/patent_app_detect)
[![build status](http://img.shields.io/travis/datasciencecampus/patent_app_detect/master.svg?style=flat)](https://travis-ci.org/datasciencecampus/patent_app_detect)
[![codecov](https://codecov.io/gh/datasciencecampus/patent_app_detect/branch/master/graph/badge.svg)](https://codecov.io/gh/datasciencecampus/patent_app_detect)
[![LICENSE.](https://img.shields.io/badge/license-OGL--3-blue.svg?style=flat)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/)

# patent_app_detect

Expand Down

0 comments on commit f2a5b00

Please sign in to comment.