Exemplo n.º 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
}
Exemplo n.º 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)
}