Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mekanix committed Sep 22, 2018
1 parent 608b07e commit 0de271a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ jobs:
- run:
name: Run tests
command: bin/test.sh
- run:
name: Publish code coverage
command: |
pip install coveralls
set
coveralls
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
__pycache__
.coverage
.pytest_cache
.provisioned
build
cbsd.conf
coverage.xml
ansible/group_vars/all
ansible/inventory/inventory
ansible/roles/*
Expand Down
2 changes: 1 addition & 1 deletion bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ setup
rm -rf `find . -name __pycache__`
rm -rf .pytest_cache
flake8 .
py.test
py.test --cov=onelove --cov-report=xml
2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
factory-boy
flake8
ipdb
pytest-cov
pytest-factoryboy
pytest-flask

0 comments on commit 0de271a

Please sign in to comment.