예제 #1
0
func (a *Allure) StartStep(stepName string, start time.Time) {
	var (
		step  = beans.NewStep(stepName, start)
		suite = a.GetCurrentSuite()
	)

	step = currentStep[suite]
	step.Parent.AddStep(step)
	currentStep[suite] = step
}
예제 #2
0
func (a *Allure) StartCase(testName string, start time.Time) {
	var (
		test  = beans.NewTestCase(testName, start)
		step  = beans.NewStep(testName, start)
		suite = a.GetCurrentSuite()
	)

	currentState[suite] = test
	//strange logic((((
	currentStep[suite] = step

	suite.AddTest(test)
}