From: Pengfei Xue Date: Fri, 15 Nov 2013 10:00:18 +0000 (+0800) Subject: add coverage make target X-Git-Tag: v2.1.0~20^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afaed3343ab732904fb46eddb28d255bb31ce0e5;p=services%2Fpython-requests.git add coverage make target --- diff --git a/AUTHORS.rst b/AUTHORS.rst index 67a818b..2636fa6 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -142,3 +142,4 @@ Patches and Suggestions - Can Ibanoglu @canibanoglu - Thomas Weißschuh @t-8ch - Jayson Vantuyl @kagato +- Pengfei.X diff --git a/Makefile b/Makefile index 9251923..b315282 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ init: test: py.test +coverage: + py.test --verbose --cov-report term --cov=requests test_requests.py + ci: init py.test --junitxml=junit.xml diff --git a/requirements.txt b/requirements.txt index 2bedd65..5616d2f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ py==1.4.12 pytest==2.3.4 +pytest-cov==1.6 invoke==0.2.0 wheel