allure-go icon indicating copy to clipboard operation
allure-go copied to clipboard

fix: after panic in test body context switch to afterEach

Open moeryomenko opened this issue 9 months ago • 0 comments

If a panic occurs in the body of the test (no one catches it), in the defer chain the afterEachHook sets the provider test context to afterEach, common.TestError handles the wrong panic context. First at all, need catch panic after test execution, and then run afterEachHook

moeryomenko avatar May 07 '24 13:05 moeryomenko