-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add asynchronous option to jscoverage_report() #227
Comments
Looks good, just double checking the code before committing. |
Are you happy with the patch as is, or were you wanting for it to be wired into the UI? Also, I was thinking of making the arguments function jscoverage_report(dir, callback, timeout) {
...
request.timeout = timeout || 120000; |
I'm not sure I follow, but I am happy with it, because it solves my problem. Perhaps the timeout should be longer, or configurable, but 120s is enough in Raspberry 3, which is not the typical machine.
|
The fix has been committed. You can get the latest build from https://drone.io/github.com/tntim96/JSCover/files. |
Just a note, I'm going to remove the deprecated synchronous call in #232. I'm also going to change the call-back arguments to just call the request object when |
No problem from my side. Elvis
|
In some platforms (e.g. Raspberry) the jscoverage_report() takes so much time that it timeouts. Since a synchronous request cannot have its timeout configured, the option is to add an asynchonous option with a callback. Attached is a suggested patch that implements this feature, I have tested it in my test environment with success.
jscoverdiff.zip
The text was updated successfully, but these errors were encountered: