Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSpec vs Jasmine vs QUnit for javascript and jQuery testing in Rails

I am looking for a unit testing framework to use with javascript that integrates well with Rails 3.0

Anyone with experience with above frameworks can share their experience?

** UPDATE: JSpec is now discontinued as per their Github repository: http://github.com/visionmedia/jspec so this leaves Jasmine and QUnit

like image 624
zzawaideh Avatar asked Sep 30 '10 15:09

zzawaideh


3 Answers

Jasmine works just fine with Rails 3, check out for how to integrate it: http://pivotallabs.com/users/dwfrank/blog/articles/1427-jasmine-in-rails-3

like image 106
dwfrank Avatar answered Nov 15 '22 04:11

dwfrank


Check out the qunit for rails plugin if you use Qunit.

like image 3
Andy Atkinson Avatar answered Nov 15 '22 04:11

Andy Atkinson


I've used QUnit on projects written in .NET and Java. In both worlds, we had to homebrew the integration. I don't expect Rails integration to be any more forthcoming.

like image 1
Sean McMillan Avatar answered Nov 15 '22 04:11

Sean McMillan