Skip to content

Commit

Permalink
Add coverage and less gready requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoravcik committed Jun 8, 2014
1 parent 014e394 commit 13b3d96
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[report]
omit =
*/python?.?/*
*/site-packages/nose/*
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ python:
- 2.7

script:
- make travis
- make travis

after_success:
- coveralls
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ install:
python setup.py develop
pip install -r requirements.txt

test:
./runtests.py
coverage:
coverage run ./runtests.py

travis: install test
travis: install coverage
12 changes: 8 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
coverage==3.5.1
ipdb==0.2
mock==0.7.0
django-nose==1.1
# Tests
mock>=1.0.1,<1.1
coverage>=3.6,<3.7
django-nose>=1.2,<1.3
coveralls>=0.1.1,<0.2

# Debug
ipdb>=0.8,<0.9
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def run_tests(*test_args):
if __name__ == '__main__':
args = sys.argv[1:]
if not args:
args.extend(['--with-coverage', '--cover-package=my_css'])
args.extend(['tests'])
configure()
run_tests(*args)

0 comments on commit 13b3d96

Please sign in to comment.