Example #1
0
func runner() testframework.JsonTestRunner {
	if runnerVar != nil {
		return runnerVar
	} else {
		// Setup runner
		runnerVar = testframework.NewJsonTestRunner()
		registerFunctions(runnerVar)

		// Start the server
		testserver.AssureServerRunning()
	}
	return runnerVar
}
Example #2
0
func Runner() btesting.Runner {
	if runner == nil {
		// Start the server
		testserver.AssureServerRunning()

		// Create new runner
		runnerVar := new(runnerStruct)

		jsonRequestPerformer := jsonclient.NewJsonRequestProcessor()
		jsonConfig := jsonclient.CreateJsonConfig()
		jsonT := btestingimpl.New(jsonRequestPerformer, jsonConfig)
		handler.Register(jsonT.Evaluator())
		runnerVar.addTesting(jsonT)

		runner = runnerVar
	}
	return runner
}