Closed nugolnikova closed 3 months ago
Describe the bug Set up/Tear down sections are not displayed in tests without suite
To Reproduce Steps to reproduce the behavior: 1-2. Write simple test with t.WithTestSetup()/t.WithTestTeardown()
func TestSetupTeardown1(t *testing.T) { runner.Run(t, "My 1 test", func(t provider.T) { t.WithTestSetup(func(t provider.T) { t.WithNewStep("My 1 Step!", func(sCtx provider.StepCtx) { time.Sleep(1 * time.Second) }) }) t.WithNewStep("My 2 Step!", func(sCtx provider.StepCtx) { time.Sleep(1 * time.Second) }) t.WithTestTeardown(func(t provider.T) { t.WithNewStep("My 3 Step!", func(sCtx provider.StepCtx) { time.Sleep(1 * time.Second) }) }) }) }
Expected behavior t.WithTestSetup()/t.WithTestTeardown() sections are displayed in allure-report as in the tests with suites
Screenshots
Describe the bug Set up/Tear down sections are not displayed in tests without suite
To Reproduce Steps to reproduce the behavior: 1-2. Write simple test with t.WithTestSetup()/t.WithTestTeardown()
Expected behavior t.WithTestSetup()/t.WithTestTeardown() sections are displayed in allure-report as in the tests with suites
Screenshots