-
Notifications
You must be signed in to change notification settings - Fork 308
Using Intern with PhantomJS
Colin Snover edited this page Nov 8, 2013
·
15 revisions
While PhantomJS is not a suitable replacement for testing in real browsers, it is often quicker and easier to test with PhantomJS when writing your tests and then let your CI service handle running tests across all platforms.
Using a local PhantomJS installation with Intern is very simple:
- In your Intern configuration, set
environments: [ { browserName: 'phantom' } ]
anduseSauceConnect: false
- Run
phantomjs --webdriver=4444
- Run
node runner.js config=path/to/config
Note: Due to PhantomJS issue #10522, you must either use the geezer
edition of Intern, apply PhantomJS PR #11225, use an alternative AMD loader that supports Safari 5.0 and older, or wait for PhantomJS 2.