Limit nosetests coverage to the bmap-tools project
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 29 Nov 2012 08:44:11 +0000 (10:44 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 29 Nov 2012 08:44:11 +0000 (10:44 +0200)
... otherwise various libraries like 'bzip2' are included.

Change-Id: Iab43f8ba1c7d167ff8e924b3d592d4a602577fc1
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
.coveragerc [new file with mode: 0644]
README
setup.cfg [new file with mode: 0644]

diff --git a/.coveragerc b/.coveragerc
new file mode 100644 (file)
index 0000000..5b774a1
--- /dev/null
@@ -0,0 +1,3 @@
+[run]
+include = bmaptool
+          bmaptools/*
diff --git a/README b/README
index 56e551e..abb61ca 100644 (file)
--- 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 (file)
index 0000000..68aaa41
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,2 @@
+[nosetests]
+cover-package=bmap-tools