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
Tests failing due to #408 #413
Comments
Absolutely, I'll get to that ASAP! How do I run the tests in Firefox locally? |
Also, would an acceptable solution be to use |
Easiest way to get firefox tests running locally is to, well, install firefox and run them. We have a karma config which you could use to make things easier*:
As for your other comment, using * Instructions off the top of my head, may not actually work |
Thanks, I'll try that. it'd be wonderful to have a |
We have a Makefile, and running If you have a saucelabs account, then you can set I can see how its a bit of a pain. It'd be nice if Travis could securely run our saucelabs tests for PRs (see travis-ci/travis-ci#1301) but we are we we are. If you have any suggestions for improvements I'd love to hear them, feel free to raise as many issues as you see fit 😄 |
An HTML file that I could run in various browsers, that sauce also ran, seems like it would cover all the use cases and allow for easy local dev, without sauce integration. |
I'm definitely still having trouble getting a |
Ahh, I think this might be my bad advice. The test runner depends on |
OK - even when doing that though, I'm still getting this error output: INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket 4qlUPMSd4qDdpAmYRu_d with id 50537547
PhantomJS 1.9.8 (Mac OS X) ERROR
Error: failed to require "../lib/chai/utils"
at /Users/ljharb/Dropbox/git/ljharb-chai.git/build/build.js:11 In both |
Ahh. The tests aren't built, and so If you're using it to test that the error message is using |
That's what I did in the first place, but then that causes this very issue because object property order differs from engine to engine :-) So hardcoding it is out, using require is out (so sad, that should work everywhere via browserify), which means the only other solution I can think of is to parse the string, and test for the first part of the error message, and then test the second part (the object) one property at a time. Very gnarly. Thoughts? |
We're not using browserify - although perhaps we should, but that's a separate discussion I guess. The way I see it, right now we have two options:
|
@ljharb any progress with this? |
Not quite yet, but will take another look tonight. |
k, PR posted :-) I opted for the regex approach, since changing the key ordering I don't think is always desired. I also added a make task for testing on firefox. |
Hey @ljharb, the Travis job just failed because the tests in #408 seem to fail within Firefox 22.
Here are the results from the build: https://travis-ci.org/chaijs/chai/builds/56420793
To summarise them - it looks as though Firefox 22 just re-orders configuration properties strangely, so the strings that try to catch the error are wrong (because the properties are in the wrong order. It looks like its expect.js#L550, and expect.js#L559.
If you could address these in a new PR that'd awesome. Thanks @ljharb 😄
The text was updated successfully, but these errors were encountered: