Skip to content

Commit

Permalink
back to pytest-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
abagshaw committed May 20, 2017
1 parent 578b746 commit 8fe2cf1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = test/*
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
bin/

# Sample image data
sample_img/*.jpg #Exclude any added images
!sample_img/sample_*.jpg #Don't exclude the default images
sample_img/out/*.jpg #Exclude any generated images with predictions
sample_img/*.jpg
!sample_img/sample_*.jpg
sample_img/out/*

# Annotated test results
results/
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install:
- pip install .

# command to run tests
script: coverage run -m pytest -x
script: pytest --cov=./ -x

#Upload code coverage statistics
after_success:
Expand Down
2 changes: 1 addition & 1 deletion test/requirements-testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ opencv-python
numpy
Cython
codecov
coverage
pytest-cov

0 comments on commit 8fe2cf1

Please sign in to comment.