I just noticed the Mocha reporter events (test, test end, hook, hook end, ..etc) are not been triggered until each test file finish its execution ( or when the end event is triggered).
I'm having kind of a problem with this behavior since I'm needing to log these mocha reporter events in a file for future debugging. This is because sometimes the execution of the tests exceed a time limit and we end up killing the process. And I need to know how far it got (last test, hook or suite executed).
Hi guys,
I just noticed the Mocha reporter events (
test
,test end
,hook
,hook end
, ..etc) are not been triggered until each test file finish its execution ( or when theend
event is triggered).I'm having kind of a problem with this behavior since I'm needing to log these mocha reporter events in a file for future debugging. This is because sometimes the execution of the tests exceed a time limit and we end up killing the process. And I need to know how far it got (last test, hook or suite executed).
Any solution or workaround for this situation?