Пример #1
0
                                   sqlFile="report",
                                   runSettings=runSettings,
                                   testSettings=testSettings)

    testfilter = makeFilter(args.include, args.exclude)
    testrange = makeSlice(args.slice)

    if args.list:
        app.printTestList(testrange=testrange, testfilter=testfilter)
        exit(0)

    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")
Пример #2
0
								   htmlFile        = "report",
								   sqlFile         = "report",
								   runSettings     = runSettings,
								   testSettings    = testSettings)


	testfilter = makeFilter(args.include, args.exclude)
	testrange = makeSlice(args.slice)

	if args.list:
		app.printTestList(testrange = testrange, testfilter = testfilter)
		exit(0)

	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")