Added api to get test status in after hooks
Access to Test Result in AfterEach Hook
What was implemented?
Introduced the ability to access the current test result inside the AfterEach hook using the method GetCurrentTestResult(). This method provides the status and details of the just-finished test, allowing users to react to test outcomes directly in the hook.
How was it implemented?
The test result is stored and made available to the AfterEach hook context after each test execution. The API exposes GetCurrentTestResult() for use in custom suite hooks, without changing the core test or hook execution logic.
Why was it added?
This feature allows users to perform custom actions (logging, attachments, cleanup) based on the result of each test. It improves flexibility for reporting and debugging, making it easier to handle failed, broken, or skipped tests right after they finish.
@koodeex @siller174 check please
@metafates check pls
Who is currently working on this repository?
Hey @SergKhram I'm not working on it, I think @koodeex or @metafates shall check it, but also not sure
@metafates @koodeex ping
Hello! Thank you for your work. Left some review comments
@metafates check the fixes, pls
Hello! Thank you for your work. Left some review comments
Hello, ping
hi, @metafates please, check the review's fixes :)
Thank you!