Files
openlayers/test
Andreas Hocevar ef52a757b1 Merge pull request #5344 from probins/rasterenum
Remove raster enum from test
2016-05-14 01:53:58 +02:00
..
2016-03-31 19:25:42 +13:00
2016-01-11 18:56:07 -08:00
2015-04-26 20:36:14 +02:00

Included in this directory

  • index.html - the web page used to run the test suite.

  • spec - includes the OpenLayers test/spec files.

  • test-extensions.js - includes OpenLayers-specific extensions to the testing frameworks.

Run the test suite

Install the test dependencies (from the root of the repository):

npm install

Run the tests once with PhantomJS:

make test

(Note that for npm users, this can also be run as npm test.)

Run the tests in a browser:

make serve

(Again for npm users, this is npm start.)

Now visit http://localhost:3000/test/ in your browser. The tests will re-run any time one of the source or spec files changes.

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 "make test".