From 7ce5b67a21b17f72b8155a6bdb1cb49fed353fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 28 Mar 2014 18:53:39 +0100 Subject: [PATCH] Actually add coverage back, it's just coveralls we didn't want --- setup.py | 2 ++ test_elasticsearch/run_tests.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 27a8e343..260b1e5f 100644 --- a/setup.py +++ b/setup.py @@ -18,8 +18,10 @@ install_requires = [ tests_require = [ 'requests>=1.0.0, <3.0.0', 'nose', + 'coverage', 'mock', 'pyaml', + 'nosexcover' ] # use external unittest for 2.6 diff --git a/test_elasticsearch/run_tests.py b/test_elasticsearch/run_tests.py index 9e4e4fb7..bb86b18d 100755 --- a/test_elasticsearch/run_tests.py +++ b/test_elasticsearch/run_tests.py @@ -55,9 +55,11 @@ def run_all(argv=None): # fetch yaml tests fetch_es_repo() + # always insert coverage when running tests if argv is None: argv = [ 'nosetests', '--with-xunit', + '--with-xcoverage', '--cover-package=elasticsearch', '--cover-erase', '--logging-filter=elasticsearch', '--logging-level=DEBUG', '--verbose', ]