willscott / grunt-jasmine-firefoxaddon

Run jasmine specs in a Firefox addon
Apache License 2.0
0 stars 1 forks source link

Running tests #1

Closed agallant closed 9 years ago

agallant commented 9 years ago

So, it works - the main proviso is that loading additional resources is still clunky. .jsm modules can be specified ("helpers") and will load, but other resources (such as freedomjs modules) need to be put in .build/data/.... I explained this in the readme, and also actually successfully implemented and ran/passed tests in freedom-pgp-e2e - https://github.com/freedomjs/freedom-pgp-e2e/compare/soycode-firefoxaddontest

I would like to have better options and copying of needed additional files, but since this does work for the actual testing and basically a simple supplementary grunt-contrib-copy task can do the rest of the work, I figured I'd go ahead with the pull request.

Let me know any thoughts, thanks!