dabo Commit Revision 2858 Date: 2007-02-28 15:37:33 -0800 (Wed, 28 Feb 2007) Author: Nate
Changed: A trunk/tests/Unit Tests/ A trunk/tests/Unit Tests/biz/ A trunk/tests/Unit Tests/db/ A trunk/tests/Unit Tests/lib/ A trunk/tests/Unit Tests/masterTestSuite.py A trunk/tests/Unit Tests/ui/ D trunk/tests/biz/ D trunk/tests/db/ D trunk/tests/lib/ D trunk/tests/masterTestSuite.py D trunk/tests/ui/ Log: Realized we might want to do integration testing as well so a moved the unit test harness to its own directory. We can have an integration test harness when the time comes. Diff: Copied: trunk/tests/Unit Tests/biz (from rev 2857, trunk/tests/biz) Copied: trunk/tests/Unit Tests/db (from rev 2857, trunk/tests/db) Copied: trunk/tests/Unit Tests/lib (from rev 2857, trunk/tests/lib) Copied: trunk/tests/Unit Tests/masterTestSuite.py (from rev 2857, trunk/tests/masterTestSuite.py) =================================================================== --- trunk/tests/Unit Tests/masterTestSuite.py (rev 0) +++ trunk/tests/Unit Tests/masterTestSuite.py 2007-02-28 23:37:33 UTC (rev 2858) @@ -0,0 +1,19 @@ +"""Master test control for the test suite. Tests for all Tiers plus the lib section of Dabo are imported and run from here. + +This will import the DB, Biz, Lib, and UI Tiers for the test. We will add the test files manually in the __init__.py files +in each module. The init files and every Test Case file must provide a function suite() which will return a unittest.TestSuite +object that encompasses the all of the test cases and suite within that file or module. See the sample init and testCase files +for more information. +""" + +import unittest + +import db +import biz +import lib +import ui + +suiteList = [db.suite(), biz.suite(), lib.suite(), ui.suite()] + +allTiersTestSuite = unittest.TestSuite(suiteList) +unittest.TextTestRunner(verbosity=2).run(allTiersTestSuite) \ No newline at end of file Copied: trunk/tests/Unit Tests/ui (from rev 2857, trunk/tests/ui) Deleted: trunk/tests/masterTestSuite.py _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
