-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Additional testing around XHR events to ensure only expected events are fired #1043
Conversation
a51b48a
to
57f9082
Compare
P.S. The Travis build fails when doing the cloud tests, but this is not this test's fault (we think). We have unfortunately have had failing builds for a while (history) ... |
@mantoni any idea on how to get some more info out of |
You can try to reproduce locally with a local WebDriver install. It's easy to set up and instruction are provided here. There is also an option in min-webdriver to keep the browser open on failures (set |
I'm on master and fully up to date, but the command run is not even the same: ➜ Sinon.JS git:(master) npm run test-headless
> [email protected] test-headless /home/phred/src/git/Sinon.JS
> mochify --recursive -R dot --grep WebWorker --invert test/
# phantomjs:
...............................................................................................................................................................................................
...............................................................................................................................................................................................
...............................................................................................................................................................................................
......................................test
.........................................................................................................................................................
...............................................................................................................................................................................................
...............................................................................................................................................................................................
...............................................................................................................................................................................................
....................................................................................................................................................
1477 passing (856ms)
8 pending Compared to Travis:
|
I found the error in my ways. I should be running New problem: I pulled the SAUCE_USERNAME from the Travis logs. |
@fearphage The easiest is to create a free SauceLabs account and put your user and access key into your environment. Then you can always run any mochify browser tests from your local console. It doesn't have to be the one used for the Sinon travis builds. |
@fearphage @fatso83 I tried to reproduce the build issue on my machine, but I can't reproduce. Travis seems to time out after 10 minutes, and what I see is that IE 10 and 11 take a long time (around 2 minutes) to run. That still does not explain why Travis does not receive any output and fails with a timeout eventually. However, there are two test cases that currently fail on IE 10 and IE 11:
There have been a few releases of Mocha recently – that's the only external change that comes to mind. |
@mantoni This did not start recently. Those two tests started failing 2 months ago with this build that merged pull request #1023. Ref my comment in that issue. |
If you wait long enough, they do pass: Fixes
|
@fearphage That's great news. I have been scratching my head about this for some time, but haven't looked into it really hard. |
Purpose (TL;DR) - mandatory
Added additional tests around the events fired from fake XHR. There are no code changes -- just additional tests.
Background (Problem in detail) - optional
These tests are related to and build on tests added in #1041. There are partially in response to the conversation in #432.
How to verify - mandatory
npm install
npm test