From cba518f405c046f690795d14e8e688123a9afee9 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 29 Nov 2012 10:44:11 +0200 Subject: [PATCH] Limit nosetests coverage to the bmap-tools project ... otherwise various libraries like 'bzip2' are included. Change-Id: Iab43f8ba1c7d167ff8e924b3d592d4a602577fc1 Signed-off-by: Artem Bityutskiy --- .coveragerc | 3 +++ README | 5 ++++- setup.cfg | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .coveragerc create mode 100644 setup.cfg 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 -- 2.7.4