Skip to content

Commit

Permalink
Introducing code coverage (using codecov.io) (marco-c#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
poush authored and marco-c committed Feb 20, 2018
1 parent d4db8b7 commit 0761220
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[report]
omit =
data/*
data_resized/*
tools/*
label_persons/*
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ tools/geckodriver
tools/chromedriver

geckodriver.log
.DS_Store
.DS_Store
.coverage
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ install:
- pip install -r test-requirements.txt
script:
- flake8 .
- pytest ./tests/test_*.py
- pytest ./tests/test_*.py --cov=./

after_success:
- codecov
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
flake8
rfc6266==0.0.4
pytest==3.4.0
pytest-cov==2.5.1
codecov

0 comments on commit 0761220

Please sign in to comment.