Skip to content

Commit

Permalink
coveralls: add test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
BibianaC committed Oct 23, 2020
1 parent 9fc84dc commit 5287966
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source = datastore
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ before_script:

script:
- "./datastore/manage.py migrate"
- "./datastore/manage.py test tests"
- "coverage run --source='./datastore' ./datastore/manage.py test tests"
- "datagetter.py --help" # Verify it compiles and is installed
- "flake8"
- "isort --check-only --recursive ./"
- "black --check ./"

after_success: coveralls
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

[![Build Status](https://travis-ci.com/ThreeSixtyGiving/datastore.svg?branch=master)](https://travis-ci.com/ThreeSixtyGiving/datastore)


[![Coverage Status](https://coveralls.io/repos/github/ThreeSixtyGiving/Dashboard/badge.svg?branch=master)](https://coveralls.io/github/ThreeSixtyGiving/Dashboard?branch=master)

## Postgres setup

Example:
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ flake8
isort
black
requests_mock
coveralls
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ flake8==3.8.3
isort==4.3.21
black==19.10b0
requests-mock==1.8.0
coveralls==2.1.2
## The following requirements were added by pip freeze:
appdirs==1.4.3
attrs==19.1.0
Expand Down

0 comments on commit 5287966

Please sign in to comment.