testfilter=testfilter, onlyRunFailed=args.failed) app.saveJson() header = None if args.header and os.path.exists(args.header): with open(args.header) as f: header = f.read() footer = None if args.footer and os.path.exists(args.footer): with open(args.footer) as f: footer = f.read() app.saveHtml(header=header, footer=footer) if app.success(): print_info("Regression was successful") print_info("Report: " + output + "/report.html") if args.view: openWithDefaultApp(output + "/report.html") sys.exit(0) else: print_error("Regression was unsuccessful see report for details") print_info("Report: " + output + "/report.html") if args.view: openWithDefaultApp(output + "/report.html") sys.exit(1) except ivwpy.regression.error.MissingInivioAppError as err: print_error(err.error) print_info("Check that option '-i' is correct") sys.exit(1)
try: app.runTests(testrange = testrange, testfilter = testfilter, onlyRunFailed = args.failed) app.saveJson() header = None if args.header and os.path.exists(args.header): with open(args.header) as f: header = f.read() footer = None if args.footer and os.path.exists(args.footer): with open(args.footer) as f: footer = f.read() app.saveHtml(header = header, footer = footer) if app.success(): print_info("Regression was successful") print_info("Report: " + output+"/report.html") if args.view: openWithDefaultApp(output+"/report.html") sys.exit(0) else: print_error("Regression was unsuccessful see report for details") print_info("Report: " + output+"/report.html") if args.view: openWithDefaultApp(output+"/report.html") sys.exit(1) except ivwpy.regression.error.MissingInivioAppError as err: print_error(err.error) print_info("Check that option '-i' is correct") sys.exit(1)