CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

[Question] How can I get test name and pass/fail status in a helpers _after method?

Open waryhermit opened this issue 9 years ago • 2 comments

I would like to know the name of the test that just finished and if it passed or failed. I need this to properly annotate my test results via Suacelabs REST API.

waryhermit avatar Apr 21 '17 18:04 waryhermit

You can have a custom hook which will listen event.test.passed and event.test.failed See http://codecept.io/hooks/#api

DavertMik avatar May 17 '17 23:05 DavertMik

@DavertMik Thanks

waryhermit avatar May 18 '17 01:05 waryhermit