acuminous/yadda

Always Getting A Timeout On After All Hook With Cucumber-Boilerplate

Closed this issue · 5 comments

Error Description :

  1. "after all" hook:
    Error: timeout of 25000ms exceeded. Ensure the done() callback is being called in this test.
    at null. (C:\Mobile_Appium\Cucumber_Boilerplate\node_modules\mocha\lib\runnable.js:215:19)

I dont see any after all hook in implementation ?

Hi @dheeraj1988,

I think you misunderstand Yadda. It isn't a test runner, and so doesn't have before and after hooks. It's just a library that when given a string, will lookup a function, parse arguments from the string, then execute the function with those arguments.

How you execute Yadda is entirely up to you, but as a convenience I provide integration for common test frameworks such as mocha. If you were to use mocha directly instead of via cucumber boilerplate you could write the before and after functions in the normal way, however these would be executed by mocha, not Yadda.

Other developers have built libraries on top of Yadda that are separate from the project itself. To me your issue looks related to the cucumber boilerplate project. If you raise you question there they may be able to help.

I also notice that this is the second time you've posted the same issue to the Yadda project, but you didn't respond to my previous comments. I expect you had reasons, but if possible please respond to any questions or advice within a reasonable time. I close issues where the author doesn't reply.

It's also possible you have code like the following somewhere in your test.

after(function(done) {
   // Does not call done()
})

Hey thanks for the info. I will get back to you on this soon.

Any luck?

No Luck, Please Close It :(