-
Notifications
You must be signed in to change notification settings - Fork 142
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
Prototype PhantomJS as a test runner #113
Comments
Hopefully this can fix #108 |
Sounds good, may have a try, saucelabs is too slow. |
Now the CI works, except the Pull request. |
SauceLabs isn't slow, I just have to fix my account on there. And the PR didn't fix the build nor did it add PhantomJS support, that is blocked by travis-ci/travis-ci#3225 |
The PR fixed the build! It's just because only your pull request can running the SauceLabs unittest, |
It' implemented by #108 |
Sadly PhantomJS still doesn't support IndexedDB. I could rely on one of the IDB shims but that seems a little dodgy... |
It does support it now (without shims). Oddly, version 0.10.2 works fine for me in PhantomJS 2.0.0. However, version 0.12.0 fails with an error:
I'm not referring to the tests inside this repo, but a whole slew of my own tests of a layer built on top of db.js (so presumably it's the same). Any thoughts what change in 0.12.0 might have caused this? |
Not that i can think of. Got a repo where I can see the tests? |
These are the tests: https://github.com/kobotoolbox/enketo-express/blob/master/test/client/store.spec.js of this store.js file. However, I can try to create a failing phantomjs test in a port of db.js for easier demonstration, when I have time. |
I've just created a karma branch for my testing here, and yep I can repo the same problem. Damn 😢 |
ah! Well, the good news is that they'll probably pass in v0.10. I tried for a while to identify changes by looking at the code, but didn't see anything suspicious. It's probably a very subtle change. |
Been digging more into this and I'm actually getting closer. The error that we're seeing is happening on this line: https://github.com/aaronpowell/db.js/blob/master/src/db.js#511 What's happening is that the It eventually gets through to line 511 which it tries to remove an object store named I'm currently trying to introduce a workaround when running in Phantom for that. I'm down to being able to run a 32 of the 83 tests. Woo! |
That's great news! 👍 |
I've just pushed a branch where the tests run under PhantomJS 😀 |
Woohooo!! |
🎉 |
PhantomJS 2.0 supports indexedDB (from my initial reading). I'd like to see how the tests run in PhantomJS and whether that can be used for CI instead of SauceLabs.
The text was updated successfully, but these errors were encountered: