def run(): """ Run tests for one or more dataset drivers. If -b is passed then we build all drivers, otherwise we use the current IDK driver. @return: If any test fails return false, otherwise true """ opts = parseArgs() failure = False for metadata in get_metadata(opts): app = NoseTest(metadata, testname=opts.testname, suppress_stdout=opts.suppress_stdout, noseargs=opts.noseargs) app.report_header() if( opts.unit ): success = app.run_unit() elif( opts.integration ): success = app.run_integration() elif( opts.qualification ): success = app.run_qualification() else: success = app.run() if(not success): failure = True return failure
def run(): """ Run tests for one or more dataset drivers. If -b is passed then we build all drivers, otherwise we use the current IDK driver. @return: If any test fails return false, otherwise true """ opts = parseArgs() failure = False for metadata in get_metadata(opts): app = NoseTest(metadata, testname=opts.testname, suppress_stdout=opts.suppress_stdout, noseargs=opts.noseargs) app.report_header() if (opts.unit): success = app.run_unit() elif (opts.integration): success = app.run_integration() elif (opts.qualification): success = app.run_qualification() else: success = app.run() if (not success): failure = True return failure
def run_qualification_tests(self): """ @brief Run all qualification tests for the driver and store the results for packaging """ log.info("-- Running qualification tests") test = NoseTest(self.metadata, log_file=self.log_path()) test.report_header() if(test.run_qualification()): log.info(" ++ Qualification tests passed") return True else: log.error("Qualification tests have fail! No package created.") return False
def run_qualification_tests(self): """ @brief Run all qualification tests for the driver and store the results for packaging """ log.info("-- Running qualification tests") test = NoseTest(self.metadata, log_file=self.log_path()) test.report_header() if (test.run_qualification()): log.info(" ++ Qualification tests passed") return True else: log.error("Qualification tests have fail! No package created.") return False
def run(): """ Run tests for one or more dataset drivers. If -b is passed then we build all drivers, otherwise we use the current IDK driver. @return: If any test fails return false, otherwise true """ opts = parseArgs() failed = False count = 0 success = 0 failure = 0 error = 0 start_time = time.time() for metadata in get_metadata(opts): count += 1 app = NoseTest(metadata, testname=opts.testname, suppress_stdout=opts.suppress_stdout, noseargs=opts.noseargs) app.report_header() if( opts.unit ): result = app.run_unit() elif( opts.integration ): result = app.run_integration() elif( opts.qualification ): result = app.run_qualification() elif( opts.ingest ): result = app.run_ingestion(opts.directory, opts.exit_time) else: result = app.run() if(not result): failed = True success += app.success_count error += app.error_count failure += app.failure_count if(count > 1): driver_report(count, time.time() - start_time, success, error, failure) return failure
def run(): """ Run tests for one or more dataset drivers. If -b is passed then we build all drivers, otherwise we use the current IDK driver. @return: If any test fails return false, otherwise true """ opts = parseArgs() failed = False count = 0 success = 0 failure = 0 error = 0 start_time = time.time() for metadata in get_metadata(opts): count += 1 app = NoseTest(metadata, testname=opts.testname, suppress_stdout=opts.suppress_stdout, noseargs=opts.noseargs) app.report_header() if (opts.unit): result = app.run_unit() elif (opts.integration): result = app.run_integration() elif (opts.qualification): result = app.run_qualification() elif (opts.ingest): result = app.run_ingestion(opts.directory, opts.exit_time) else: result = app.run() if (not result): failed = True success += app.success_count error += app.error_count failure += app.failure_count if (count > 1): driver_report(count, time.time() - start_time, success, error, failure) return failure