diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..b2e7c111 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +# configuration for coverage.py +[run] +source = mozregression + +[report] +exclude_lines = + # Don't complain if tests don't hit defensive assertion code + raise NotImplementedError diff --git a/.travis.yml b/.travis.yml index 8a80c5ee..7d5ad13a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ python: - "2.7" install: - pip install mock + pip install mock coverage coveralls -script: python setup.py test +script: + coverage run setup.py test + +after_success: + coveralls diff --git a/README.md b/README.md index 5e7ed50b..f87b9451 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ mozregression is an interactive regression range finder for Mozilla nightly and [![PyPI version](https://badge.fury.io/py/mozregression.svg)](http://badge.fury.io/py/mozregression) [![Build Status](https://travis-ci.org/mozilla/mozregression.svg?branch=master)](https://travis-ci.org/mozilla/mozregression) +[![Coverage Status](https://img.shields.io/coveralls/mozilla/mozregression.svg)](https://coveralls.io/r/mozilla/mozregression) For more information see: