diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-03-31 16:59:10 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-04-02 15:13:50 (GMT) |
commit | 1bc406d0fb8704a7a71dcdf52f54dc6f5b4e5921 (patch) | |
tree | d1f8ed17da95b38eb0a3eaae58a210a519b363c3 /src/sugar/tutorius/tests/run-tests.py | |
parent | 7f030fd302c0be7ca7dc38863e1d9250df00ca31 (diff) |
Ajout de tests
Diffstat (limited to 'src/sugar/tutorius/tests/run-tests.py')
-rwxr-xr-x | src/sugar/tutorius/tests/run-tests.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/sugar/tutorius/tests/run-tests.py b/src/sugar/tutorius/tests/run-tests.py index 2f89c62..e1dfc00 100755 --- a/src/sugar/tutorius/tests/run-tests.py +++ b/src/sugar/tutorius/tests/run-tests.py @@ -10,10 +10,17 @@ sys.path.insert(0, ) FULL_PATH = os.path.join(INSTALL_PATH,"sugar/tutorius") +SUBDIRS = [] GLOB_PATH = os.path.join(FULL_PATH,"*.py") import unittest from glob import glob +def report_files(): + ret = glob(GLOB_PATH) + for dir in SUBDIRS: + ret += glob(os.path.join(FULL_PATH,dir,"*.py")) + return ret + import sys if __name__=='__main__': if "--coverage" in sys.argv: @@ -29,7 +36,8 @@ if __name__=='__main__': import overlaytests import linear_creatortests import actiontests - + import filterstests + suite = unittest.TestSuite() suite.addTests(unittest.findTestCases(coretests)) suite.addTests(unittest.findTestCases(servicestests)) @@ -37,12 +45,13 @@ if __name__=='__main__': suite.addTests(unittest.findTestCases(overlaytests)) suite.addTests(unittest.findTestCases(linear_creatortests)) suite.addTests(unittest.findTestCases(actiontests)) + suite.addTests(unittest.findTestCases(filterstests)) runner = unittest.TextTestRunner() runner.run(suite) coverage.stop() - coverage.report(glob(GLOB_PATH)) + coverage.report(report_files()) coverage.erase() else: from coretests import * @@ -50,5 +59,7 @@ if __name__=='__main__': from gtkutilstests import * from overlaytests import * from actiontests import * + from linear_creatortests import * + from filterstests import * unittest.main() |