What is the community-preferred Ruby unit testing framework?

Jon Homan picture Jon Homan · Sep 25, 2009 · Viewed 10.2k times · Source

In the Java space, JUnit is predominately used and in .NET I believe nUnit is very popular. Is a community agreed upon unit testing framework for the Ruby world?

Background: I ask because I am new to Ruby and want to practice TDD at same time as I learn Ruby. So far I've only played with Test::Unit.

Answer

khelll picture khelll · Sep 25, 2009

You can stick to Test::Unit or you can have nice extensions to it using Shoulda or some cool contexts using Context.

On the other side, if you prefer BDD then you can safely stick to RSpec.

As for for acceptance testing use Cucumber .