[LRUG] Fwd: Testing JS in Rails 4

Will Tomlins will at tomlins.org.uk
Wed Jul 31 08:07:44 PDT 2013


Just a thought, but have you considered making use of node?  I've had some success unit testing using jasmine with grunt-contrib-jasmine (https://github.com/gruntjs/grunt-contrib-jasmine) but using PhantomJS as a test runtime.

Grunt's a node flavoured rake, and you'd be able to compile a manifest of source JS files from within a node environment allowing you to get a the file system / do whatever build stuff you'd need to do before running the suite through jasmine / PhantomJS. 

Don't know if this is of any use to you,
Will


On 31 Jul 2013, at 15:35, James Coglan wrote:

> On 31 July 2013 15:32, Murray Steele <murray.steele at gmail.com> wrote:
> I don't know that you actually *can* do this, but I'd hope that worst-case you could use a massive monkey-patch hammer.  Spelunking sprockets-rails might be you best bet.  Unfortunately. 
> 
> Honestly I'd rather write my own build system (which I already have half a decent one for my JS library projects...), at least then it won't be coupled to Rails. I'll probably be eating humble pie by next week though.
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130731/b79dc5be/attachment.html>


More information about the Chat mailing list