npm install -g lasso-node
Install phantomjs (version 1.8 or higher is recommended), it should be in the path.
30 second example
- Open examples\basic\foo.html in a browser. It should load foo.js, fooTests.js but report no coverage.
From command line run lasso on foo.html
Use -h or --help command line switch to see all available options
- --jsunity - filters a few jsunity library js files to avoid instrumenting 3rd party tools
- --serve - start the webserver and wait, you can then open http://localhost:8888/foo.html in any browser to see what phantomjs is running.
Please contact me, Gleb Bahmutov at firstname.lastname@example.org with any comments, questions or suggestions.
MIT license, see included file. You can do pretty much anything except claim code ownership or sue me if there are problems ;)