[Module] TestOverall/0.1
James Ashley
j_r_ashley@makgifts.com
Fri, 16 Aug 2002 01:13:22 -0400 (EDT)
TestOverall/0.1
---------------
Comprehensive (?) test wrapper for unit testing
Add some extra testing, and wrap up all the unit test modules for the
current project (right now, it's limited to the current directory).
Works with a set of (arbitrary, right now) coding conventions: 1) A
project directory will have a set of "Implementation" files named *.py
2) Each implementation module should have a corresponding unit test
module, named 'Test' + implementation module name 3) Every "public"
class in the implementation module needs a corresponding test class. 4)
All the unit test modules are named Test*.py. Each has a module level
function named Suite() which returns something compatible with
unittest.TestSuite. This builds a set of unit tests to enforce those
conventions. It also checks through the project for recursive imports.
And it imports Test*.py and runs all the unittests found that way.
Feedback-wantingly-yr's, James
URL: www.makgifts.com/James
Download: www.makgifts.com/James/TestOverall.py
Categories: Python Utilities, Programming Tasks
James Ashley (j_r_ashley@makgifts.com)
www.makgifts.com/James
--
<a href="www.makgifts.com/James">TestOverall/0.1</a> -- Comprehensive
(?) test wrapper for unit testing