Hi Eric, thanks for tackling this! All your work is really appreciated. Find more comments inline.
On 27.09.2011 23:54, Eric Lemoine wrote: > On Tue, Sep 20, 2011 at 9:59 PM, Eric Lemoine > <eric.lemo...@camptocamp.com> wrote: >> Hi >> >> During the FOSS4G code sprint I spent some time playing around with >> the Jasmine testing framework and EnvJS. I tried the latter in an >> attempt to run tests outside the browser. For those interested I've >> gathered notes on a wiki page: >> <http://trac.osgeo.org/openlayers/wiki/Future/Jasmine>. I hope to be >> able to continue working on that. > Some news on the Jasmine front. > > I now have Jasmine tests for OpenLayers that run both in the browser > and headlessly using PhantomJS (http://www.phantomjs.org/). PhantomJS > is a headless WebKit; it is cool, simple to use, and it works great > with Jasmine (as long as you have QtWebKit > 4.6). Great news. > Some links and information: > > - My "jasmine" branch: <https://github.com/elemoine/openlayers/tree/jasmine>. > - The "tests/jasmine" directory this branch adds: > <https://github.com/elemoine/openlayers/tree/jasmine/tests/jasmine>. > Includes the Jasmine lib, test files (known as spec files in Jasmine > jargon), and a PhantomJS script for running the tests with PhantomJS. > The README.txt includes instructions for running the tests with > PhantomJS. > - The OpenLayers.Map tests I've written so far (not that much): > <https://github.com/elemoine/openlayers/blob/jasmine/tests/jasmine/spec/Map.spec.js>. > - OpenLayers with Jasmine In Action: > <http://elemoine.github.com/openlayers/tests/jasmine/SpecRunner.html>. > Check "Show" in the top-right corner of the page to display more > details about the tests. > > All this is pretty early-stage, but it looks promising to me. It does to me as well. > What do you think? Is this work worth pursuing? Definitely yes. > Would people like to > write, or agree with writing, new tests with Jasmine? I am +1. > Is hoping that > the community could help move existing tests to Jasmine just a dream > of mine? It is probably a dream that we'll move all our existing tests (~ ) > I'm planning to complete the OpenLayers.Map tests, and give some love > to my PhantomJS script. > > I eagerly await your forthcoming improvements ;-) Best regards, Marc _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev