コード例 #1
0
ファイル: regression.py プロジェクト: tws0002/inviwo
        imageDifferenceTolerance=args.imagetolerance)

    app = ivwpy.regression.app.App(appPath=inviwopath,
                                   moduleTestPaths=modulePaths,
                                   outputDir=output,
                                   jsonFile="report",
                                   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:
コード例 #2
0
ファイル: regression.py プロジェクト: ResearchDaniel/inviwo
	app = ivwpy.regression.app.App(appPath         = inviwopath,
								   moduleTestPaths = modulePaths, 
								   outputDir       = output,
								   jsonFile		   = "report",
								   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()