From: Artem Bityutskiy Date: Thu, 29 Nov 2012 08:44:11 +0000 (+0200) Subject: Limit nosetests coverage to the bmap-tools project X-Git-Tag: v1.0~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cba518f405c046f690795d14e8e688123a9afee9;p=tools%2Fbmap-tools.git Limit nosetests coverage to the bmap-tools project ... otherwise various libraries like 'bzip2' are included. Change-Id: Iab43f8ba1c7d167ff8e924b3d592d4a602577fc1 Signed-off-by: Artem Bityutskiy --- diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..5b774a1 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +include = bmaptool + bmaptools/* diff --git a/README b/README index 56e551e..abb61ca 100644 --- a/README +++ b/README @@ -23,6 +23,8 @@ The project structure | | on the 'BmapCreate.py' and 'BmapCopy.py' modules. | | - setup.py | A script to turn the entire bmap-tools project | | | into a python egg. | +| - setup.cfg | contains a piece of nose tests configuration | +| - .coveragerc | lists files to include into test coverage report | | - TODO | Just a list of things to be done for the project. | | - tests/ | Contains the project unit-tests. | | | - test_api_base.py | Tests the base API modules: 'BmapCreate.py' and | @@ -43,7 +45,8 @@ How to run unit tests ~~~~~~~~~~~~~~~~~~~~~ Just install the 'nose' python test framework and run the 'nosetests' command in -the project root directory. +the project root directory. If you want to see tests coverage report, run +'nosetests --with-coverage'. Branches and releases ~~~~~~~~~~~~~~~~~~~~~ diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..68aaa41 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[nosetests] +cover-package=bmap-tools