Ruby: Run Test::Unit/Minitest/Shoulda by line-number

If you like test::unit or are simply stuck with it, this works great on ruby 1.8 and 1.9+, have fun 🙂

gem install testrbl

testrbl test/unit/xxx.rb:15 # test or should or context on line 15
testrbl test/unit.xxx.rb # all tests in xxx.rb
testrbl test/unit # all tests in folder

Github:
testrbl: run Test-unit + shoulda + minitest by line

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s