ozontech / allure-go

Complete Allure provider in Go which doesn't overload the interface usage
https://t.me/allure_go_chat
Apache License 2.0
317 stars 34 forks source link

fix: after panic in test body context switch to afterEach #89

Closed moeryomenko closed 5 months ago

moeryomenko commented 6 months ago

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