Plugging in Javascript Testing into an Established Rails Project

13 views
Skip to first unread message

Ramiro Franco

unread,
Sep 6, 2012, 12:27:35 PM9/6/12
to pd...@googlegroups.com
Hello everyone~

I'm just wondering if anyone in the group has had experience establishing a javascript testing framework in an already large / established Rails project. What tips do you guys have, and can you think of any literature that I could maybe look into on the topic?

Thanks!
Ramiro Jr. Franco

Douglas McInnes

unread,
Sep 7, 2012, 11:22:38 PM9/7/12
to pd...@googlegroups.com
Hi Ramiro,

Funny you should ask this now, we just open sourced our internal tool
that we use for running our Rails app's Javascript tests. It does code
coverage! Shameless plug:

https://github.com/yp-engineering/jcov

It's not a full Rails integration type project but a command-line
tool. It uses therubyracer gem for its Javascript engine which embeds
v8 inside of Ruby. Since it's just a gem it's great for a rails
project -- nothing special to install.

Jcov is test-framework agnostic. We use Jasmine, but started out on
the BlueRidge project then Jspec before working on Jcov...both those
projects ended up abandoned.

We use env.js for headless testing -- a requirement for running on our
Hudson CI server.

There's many projects out there for javascript testing, but there are
few that do headless testing and fewer that do code coverage.

Doug
> --
> You received this message because you are subscribed to the Google Groups
> "Portland JavaScript Admirers" group.
> To post to this group, send email to pd...@googlegroups.com.
> To unsubscribe from this group, send email to
> pdxjs+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pdxjs/-/GYLipox8z4YJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages