Skip to content
Pull request Compare This branch is 8339 commits behind openlayers:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
expect-0.2.0-ol3
jquery-1.9.1
mocha-1.8.1
mocha-phantomjs
sinon-1.6.0
spec/ol
README.md
mocha-phantomjs.coffee
ol.html
test-extensions.js

README.md

Included in this directory

Run the test suite with PhantomJS

With PhantomJS installed, and assuming phantomjs is in the PATH:

$ phantomjs mocha-phantom.coffee ol.html

(Works with PhantomJS 1.6.1, untested with other versions.)

This command can also be run by doing ./build.py test at the root of ol3.

Make sure that the polvr web server is running (./build.py serve), otherwise you will most likely see something like 0 specs, 0 failures in 0.001s..

Tip for TDD'ers: to make PhantomJS run the test suite continuously each time a spec file is changed you can use nosier (http://pypi.python.org/pypi/nosier) and do nosier -p test -p src "./build.py test".

Something went wrong with that request. Please try again.