]> jfr.im git - z_archive/twitter.git/commitdiff
Merge pull request #226 from hugovk/master
authorMike Verdone <redacted>
Sat, 30 Aug 2014 14:06:49 +0000 (16:06 +0200)
committerMike Verdone <redacted>
Sat, 30 Aug 2014 14:06:49 +0000 (16:06 +0200)
Add coverage to tests

.coveragerc [new file with mode: 0644]
.travis.yml
README

diff --git a/.coveragerc b/.coveragerc
new file mode 100644 (file)
index 0000000..ddcb3d5
--- /dev/null
@@ -0,0 +1,6 @@
+[report]
+omit =
+    */python?.?/*
+    */pypy/*
+    */site-packages/nose/*
+    tests/*
index 431702ffa34951cca5d18c66ef5b6688a340eca2..b8c0995c3d03e70de2f30fcb6505569ef2dcc6b3 100644 (file)
@@ -8,10 +8,13 @@ python:
 - "3.4"
 - "pypy"
 
+install:
+  - pip install coveralls
 
-script: nosetests
+script: nosetests --with-coverage --cover-package=twitter
 
 after_success:
+  - coveralls
   - pip install pep8 pyflakes
   - pep8 twitter/*.py
   - pyflakes twitter/*.py
diff --git a/README b/README
index c2e6d789a36d747285e33111c1e84a9be084c83c..a1936999a8531a5e5f8d0a24ff4d1adc6f0005f7 100644 (file)
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
 Python Twitter Tools
 ====================
 
-[![Build Status](https://travis-ci.org/sixohsix/twitter.svg)](https://travis-ci.org/sixohsix/twitter)
+[![Build Status](https://travis-ci.org/sixohsix/twitter.svg)](https://travis-ci.org/sixohsix/twitter) [![Coverage Status](https://coveralls.io/repos/sixohsix/twitter/badge.png?branch=master)](https://coveralls.io/r/sixohsix/twitter?branch=master)
 
 The Minimalist Twitter API for Python is a Python API for Twitter,
 everyone's favorite Web 2.0 Facebook-style status updater for people