Add a test suite
Closed this issue · 4 comments
mattiasb commented
Look at how Leaflet is doing it.
mattiasb commented
I'll close this now as we can just add more tests as we see fit.
If you could add a small note in README.md (under a "Tests"-heading) on how to run the tests in both browser and using the command line it would be awesome.
mattiasb commented
Ok I got it. This does it:
$ npm install -g phantomjs grunt-cl
$ grunt test
However I get this when I run it:
INFO [karma]: Karma server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9 (Mac)]: Connected on socket id q3u0O5mdIzoTY8VcY86n
PhantomJS 1.9 (Mac): Executed 6 of 6 SUCCESS (0.106 secs / 0.015 secs)
ERROR [launcher]: Cannot start PhantomJS
@bshelton229 : do you get this too? (Notice how all tests pass, but there's still an error at the end).
mourner commented
Did you install PhantomJS on your OS? It's not an NPM package. http://phantomjs.org/
E.g. on OS X you'd do brew install phantomjs
.
mattiasb commented
Yay! That did it.
Brian: I'll update the README.md now!