ITestResult injected at @AfterMethod incorrect when a configuration method failed #3006
Closed
3 of 7 tasks
Labels
Milestone
TestNG Version
v7.8.0
Expected behavior
When a configuration method (method decorated with
@BeforeMethod
) fails. The method decorated with@AfterMehtod(alwayRun=true)
recives an ITestResult object with statusSKIPPED
(3) and the information about the configuration methods that failed.Actual behavior
When a configuration method (method decorated with
@BeforeMethod
) fails. The method decorated with@AfterMehtod(alwayRun=true)
recives an ITestResult object with statusCREATED
(-1) and no information about the skip reason.Is the issue reproducible on runner?
Test case sample
The text was updated successfully, but these errors were encountered: