Add Python unit testing and coverage report to "make check"
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 9 May 2011 05:19:51 +0000 (05:19 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 9 May 2011 05:19:51 +0000 (05:19 +0000)
commit5b68d6827f2ea4cee385df7b5ec8a42d7e7cb2a9
tree3ac8462036c011ecdad8588dde88cf4387c8258a
parent9bac30d5302951668993fd7ecabd57c5a513fa87
Add Python unit testing and coverage report to "make check"

If --enable-python is included in the arguments to configure, "make check"
runs all Python unit tests using nosetests and generates a testing coverage
report for all Python code.

The original json_test.py is factored out to provide a separate file for
testing osrf.net_obj vs. osrf.json vs. osrf.*, when we eventually get there.

Signed-off-by: Dan Scott <dan@coffeecode.net>
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2244 9efc2488-bf62-4759-914b-345cdb29e865
src/python/Makefile.am
src/python/osrf/net_obj.py
src/python/tests/json_test.py
src/python/tests/net_obj_test.py [new file with mode: 0644]
src/python/tests/test_coverage.py [new file with mode: 0644]
src/python/tests/testobj.py [new file with mode: 0644]