abuiles / ember-cli-101-errata

18 stars 4 forks source link

Installation of PhantomJS #201

Open thijsvdanker opened 9 years ago

thijsvdanker commented 9 years ago

I didn't have PhantomJS installed on my machine, and got into troubles in the testing chapter. ember test --server and the browser version worked, but ember test gave me an error.

1..0
# tests 0
# pass  0
# fail  0

# ok
No tests were run, please check whether any errors occurred in the page (ember test --server) and ensure that you have a test launcher (e.g. PhantomJS) enable
d.

After installing PhantomJS:

npm install phantomjs --safe-dev

it started working.

thijsvdanker commented 9 years ago

Fyi the npm version of PhantomJS is still running on 1.9 (instead of the released 2.0). The < 2.0 release fails on the ISO8601 Date format (https://github.com/ariya/phantomjs/issues/10187) that is used in dates-helpers-test.js

adriaandotcom commented 8 years ago

Should be

npm install phantomjs --save-dev

right?

tomwayson commented 8 years ago

Probably best to install phantom globally so it's available for all your ember projects with:

npm install -g phantomjs-prebuilt

This installs v2.1 as of the date of this comment.

See the PhantomJS section of the ember-cli user guide.