Exemplo n.º 1
0
 def run_functest():
     if load:
         functest.registry['browser_debugging'] = "True"
         xmlrpc_client.add_command({
             'method': 'commands.setOptions',
             'params': {
                 'runTests': False,
                 'priority': 'normal'
             }
         })
     functest.global_settings.test_filter = filter_string
     from windmill.authoring import WindmillFunctestRunner, post_collector
     functest.collector.Collector.post_collection_functions.append(
         post_collector)
     functest.run_framework(test_args=[module_name],
                            test_runner=WindmillFunctestRunner())
     if load:
         xmlrpc_client.add_command({
             'method': 'commands.setOptions',
             'params': {
                 'runTests': True,
                 'priority': 'normal'
             }
         })
     windmill.block_exit = False
Exemplo n.º 2
0
 def run_functest():
     if load:
         functest.registry['browser_debugging'] = "True"
         xmlrpc_client.add_command({'method':'commands.setOptions', 
                                    'params':{'runTests':False, 'priority':'normal'}})
     functest.global_settings.test_filter = filter_string
     from windmill.authoring import WindmillFunctestRunner, post_collector
     functest.collector.Collector.post_collection_functions.append(post_collector)
     functest.run_framework(test_args=[module_name], test_runner=WindmillFunctestRunner())
     if load:
         xmlrpc_client.add_command({'method':'commands.setOptions', 
                                    'params':{'runTests':True, 'priority':'normal'}})
     windmill.block_exit = False
Exemplo n.º 3
0
def main(test_args):
    # tests = []
    # cli_runner = runner.CLIRunner()
    # cli_runner.start()
    # if len(args) is not 0:
    #     for arg in args:
    #         tests.append( [ collector.create_test_module(arg), collector.create_module_chain(arg) ] )
    # else:
    #     tests.append([collector.create_test_module(os.path.curdir), collector.create_module_chain(os.path.curdir) ])
    # cli_runner.wrap_stdout(global_settings.wrap_stdout, global_settings.wrap_stderr)
    # global_settings.test_runner = cli_runner
    # totals = frame.execute(tests)
    # cli_runner.summary(totals)
    # sleep(.5)    
    
    from windmill.dep import functest
    functest.run_framework(test_args)