def main(cfg_file, matrix_args, gui): global test_suite test_suite = tests.build_test_suite(cfg_file, **matrix_args) if gui: import unittestgui unittestgui.main('__main__.test_suite') else: unittest.TextTestRunner().run(test_suite)
def runGui(avoid_integration, argv): "python /usr/lib/python2.4/site-packages/unittestgui.py launch_test.suite" global AVOID_INTEGRATION AVOID_INTEGRATION = avoid_integration import unittestgui sys.argv = argv unittestgui.main(__name__ + '.suite')
def gui_runner(files, test_filter): sys.path.insert(0, os.path.join(os.getcwd(), 'utilities')) import unittestgui suites = [] for file in files: suites.append(finder.module_from_path(file) + '.test_suite') suites = ", ".join(suites) minimal = (GUI == 'minimal') unittestgui.main(suites, minimal)
def gui_runner(files, test_filter): if BUILD_INPLACE: utildir = os.path.join(os.getcwd(), "utilities") else: utildir = os.path.join(os.getcwd(), "..", "utilities") sys.path.append(utildir) import unittestgui suites = [] for file in files: suites.append(finder.module_from_path(file) + ".test_suite") suites = ", ".join(suites) minimal = (GUI == "minimal") unittestgui.main(suites, minimal)
def gui_runner(files, test_filter): if build_inplace: utildir = os.path.join(os.getcwd(), "utilities") else: utildir = os.path.join(os.getcwd(), "..", "utilities") sys.path.append(utildir) import unittestgui suites = [] for file in files: suites.append(finder.module_from_path(file) + ".test_suite") suites = ", ".join(suites) minimal = (GUI == "minimal") # unittestgui apparently doesn't take the minimal flag anymore unittestgui.main(suites)
#!/usr/bin/python # COPYRIGHT # # Copyright (C) 2002 John Goerzen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # END OF COPYRIGHT # import unittestgui unittestgui.main('runtests.suite')
import sys import tests if __name__ == '__main__': if len(sys.argv) == 2 and sys.argv[1] == '-g': import unittestgui unittestgui.main('tests.suite') else: import unittest unittest.main(defaultTest='tests.suite')
#!/usr/bin/env python import sys import tests if __name__ == '__main__': if len(sys.argv) == 2 and sys.argv[1] == '-g': import unittestgui unittestgui.main('tests.suite') else: import unittest unittest.main(defaultTest='tests.suite')
def runGui(): import unittestgui unittestgui.main(__name__ + '.suite')