From d0ccd85afeb7d7b8a08e698705f2a8bd4fb92c87 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Wed, 16 Nov 2016 16:44:51 -0800 Subject: [PATCH] Adding coverage. (#506) * Adding coverage. * Attempting to adding coverage. * Adding coveragerc. --- .coveragerc | 2 ++ .travis.yml | 6 ++++++ Makefile | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..2b0b20dc --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[report] +include = lemur/*.py diff --git a/.travis.yml b/.travis.yml index 613a4c5d..edbd0df9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,9 +34,15 @@ before_script: - npm install -g bower - pip install --upgrade setuptools +install: + - pip install coveralls + script: - make test +after_success: + - coveralls + notifications: email: kglisson@netflix.com diff --git a/Makefile b/Makefile index e9e96b7c..02cdcb03 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ test: develop lint test-python testloop: develop pip install pytest-xdist - py.test tests -f + coverage run --source lemur -m py.test test-cli: @echo "--> Testing CLI"