Skip to content

Commit

Permalink
Add coveralls.io coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasw committed Apr 6, 2014
1 parent bd83144 commit efbc9bc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -8,4 +8,6 @@ install:
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then pip install -r py3_requirements.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION != '3.3' ]]; then pip install -r requirements.txt; fi
script:
- nosetests
- nosetests --with-coverage --cover-package=testtube
after_success:
coveralls
15 changes: 10 additions & 5 deletions README.md
@@ -1,4 +1,9 @@
# Testtube [![Build Status](https://travis-ci.org/thomasw/testtube.png)](https://travis-ci.org/thomasw/testtube)
# Testtube

[![Build Status](https://travis-ci.org/thomasw/testtube.png)](https://travis-ci.org/thomasw/testtube)
[![Coverage Status](https://coveralls.io/repos/thomasw/testtube/badge.png)](https://coveralls.io/r/thomasw/testtube)
[![Latest Version](https://pypip.in/v/testtube/badge.png)](https://pypi.python.org/pypi/testtube/)
[![Downloads](https://pypip.in/d/testtube/badge.png)](https://pypi.python.org/pypi/testtube/)

Spare your alt and tab keys by automatically running your project's test suite
whenever files change.
Expand Down Expand Up @@ -65,7 +70,7 @@ bit, `stir -h` will light the way:
-h, --help show this help message and exit
--src_dir SRC_DIR The directory to watch for changes. (Defaults to
CWD)
--settings SETTINGS The testtube settings module that defines which
--settings SETTINGS The testtube settings module that defines which
tests to run. (Defaults to "tube" - the settings
module must be importable from your current working
directory)
Expand All @@ -78,7 +83,7 @@ one argument and add it to your patterns list:

def mytest(changed_file):
print "Oh snap, %s just changed" % changed_file

PATTERNS = (
(r'.*', [mytest]),
)
Expand All @@ -89,11 +94,11 @@ regular expression:

def mysmartertest(changed_file, **kwargs):
print "%s in %s/ changed." % (changed_file, kwargs['dir'])

PATTERNS = (
(r'.*/(?P<dir>[^/]*)/.*\.py', [mysmartertest]),
)



## Everything else
Expand Down
1 change: 1 addition & 0 deletions py3_requirements.txt
@@ -1,6 +1,7 @@
watchdog==0.7.1

# Testing requirements
coveralls==0.4.1
pep8==1.3.3
pinocchio==0.4.1
frosted==1.4.0
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
@@ -1,6 +1,7 @@
watchdog==0.7.1

# Testing requirements
coveralls==0.4.1
pep8==1.3.3
pinocchio==0.4.1
frosted==1.4.0
Expand Down

0 comments on commit efbc9bc

Please sign in to comment.