From: hugovk Date: Fri, 18 Apr 2014 10:35:39 +0000 (+0300) Subject: Add coverage to tests X-Git-Tag: twitter-1.16.0~25^2~13^2~3 X-Git-Url: https://jfr.im/git/z_archive/twitter.git/commitdiff_plain/31cafa6f5c4bf6a526e1b54d74252a84f37ccfec?hp=241b59f17b252283db31a37b447c353bab818879 Add coverage to tests --- diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..7511801 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[report] +omit = + */python?.?/* + */site-packages/nose/* + tests/* diff --git a/.travis.yml b/.travis.yml index 1a26344..e36591b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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