Run single test case to speed up development

When you use common TestUnit (maybe with great gem “Shoulda”:http://github.com/thoughtbot/shoulda) or “RSpec”:http://rspec.info/, you may speed up development by running only single test case. In TestUnit, run test file with -n switch:

ruby -n "name_of_test_method" path/to/test_file.rb

or use regexp:

ruby -n "/name of test method/" path/to/test_file.rb

Regexp is very convinient when you work with shoulda.

In Rspec, you can use -e:

rspec -e 'name of pattern' path/to/spec_file.rb

Or maybe you would like to install “autotest”:http://www.zenspider.com/ZSS/Products/ZenTest/ or “autospec”:http://github.com/dchelimsky/rspec/wiki/Autotest-Integration for Rspec?

Logging best practices

3 minutes read

How to list postgres procedures

short read

Why I like go lang

short read