-
Notifications
You must be signed in to change notification settings - Fork 8
mocha-retry tests aren't working #6
Comments
Dear developer, thanks for creating mocha-retry - we need this badly for our open source analytics platform project http://piwik.org (github: https://github.com/piwik/piwik ) Short story: we take 200 screenshots of the Piwik app on each push, and we have about 3 screenshots that randomly fail because of small pixel differences... (tracked in matomo-org/matomo#6693 ) I tried to implement the mocha-retry as you can see here: https://github.com/piwik/piwik/compare/6693?expand=1 Unfortunately the CI build errors out with the following error:
You can see build result here: https://travis-ci.org/piwik/piwik/jobs/53298159 We use Mocha 2.1.0 -> Do you maybe have any suggestion or tip to make this work? |
@mattab Yes, mocha needs to be updated for mocha-retry to work properly. You can see the discussion on the mocha github issues. I had submitted a PR, which was first accepted, then later rolled back. |
Hi @giggio thanks for the update! Do you mean we should use your fork of mocha to make mocha-retry work? If so, we could try this. do you know if there's a chance they will merge it in main mocha in the future? |
Yes, my version worked, but broke the browser, they said. I haven't updated it since then. They said they would look into it, but never did. Maybe you would like to help and see what went wrong there? I never got to it, and now I am on a project on a different technology, I will not find time to work on this for quite a while. |
Closed because of #10. |
I am so far unable to run your unit tests for the mocha-retry package itself. I'm just running npm install and then ./node_modules/.bin/mocha, expecting that to run what you have under the test/ folder, and I'm getting this:
I have also tried replacing the mocha dependency in package.json with "https://github.com/giggio/mocha/archive/master.tar.gz" and with "^2.0.1", with the same result each time. It looks as though your pull requests have been merged into upstream mocha, so I figured 1.22 or 2.0.1 should work, but they're not for me.
The text was updated successfully, but these errors were encountered: