def main(args): modules = [ "pluginFilters" ] if len(args) > 1: modules = args[1:] return testsuite.run(modules)
def main(): parser = testsuite.get_arg_parser() parser.add_argument( "-b", "--binary-path", dest="binary_path", default="./bin/", help="Path to binaries", ) args = parser.parse_args() return testsuite.run( args.paths, args.chunk, args.fail_fast, args.binary_path, args.hvm_filename, args.jobs, args.verbose, args.match, args.source, args.test_skiplist, args.num_slowest_tests, args.keep_tmp, args.show_all, args.lazy, args.test_intl, )
def main(args): modules = [ "main", "tiddlywiki", "dirScraper", "utils" ] if len(args) > 1: modules = args[1:] return testsuite.run(modules)
def run(self): # Ensure the extension is built self.run_command ('build') # test the uninstalled extensions libdir = os.path.join (os.getcwd (), self.build_lib) sys.path.insert (0, libdir) import testsuite try: failures = testsuite.run () except RuntimeError, msg: sys.stderr.write ('error: %s\n' % msg) raise DistutilsExecError ('please consult the "Troubleshooting" section in the README file.')
def run(self): # Ensure the extension is built self.run_command('build') # test the uninstalled extensions libdir = os.path.join(os.getcwd(), self.build_lib) sys.path.insert(0, libdir) import testsuite try: failures = testsuite.run() except RuntimeError, msg: sys.stderr.write('error: %s\n' % msg) raise DistutilsExecError( 'please consult the "Troubleshooting" section in the README file.' )
def init(): """Performs all the initialization prior executing unit tests. Returns True on success, else False. """ status = True #False #status = requests.http_request( settings.LOAD_DATA_URL ) #print settings.LOAD_DATA_URL return status def cleanup(): """Performs all post unit test clean-ups. Returns True on success, else False. """ status = True #False #status = requests.http_request( settings.CLEAR_DATA_URL ) return status if __name__ == '__main__': if init(): try: testsuite.run() except Exception, e: print 'testsuite.run: An exception occurred:\n' + str( e ) finally: cleanup() else: print 'testsuite: Failure in initialisation prior to tests'