18 Jan 2012, 9:44pm
Ruby on Rails: configuration Rails rake ruby setup sub directories tdd test
by bseanvt

leave a comment
Ruby on Rails: configuration Rails rake ruby setup sub directories tdd test
by bseanvt
leave a comment
8 Jan 2012, 7:31pm
ruby Ruby on Rails: autotest color hacks ruby tdd testing tools workarounds workflow
by bseanvt

3 comments
ruby Ruby on Rails: autotest color hacks ruby tdd testing tools workarounds workflow
by bseanvt
3 comments
Color Output with Test:Unit, AutoTest and Ruby 1.9
If you are testing using Test:Unit (rather than RSpec) and you’re using Ruby 1.9.* colorized output of your tests using Autotest will not be immediately available. Since, 1.9 comes with mini test the test/unit/ui/console/testrunner.rb script is not loaded and not available and will break your tests.
The solution is to require Test:Unit version 2.0.0 in your Gemfile, require the testrunner.rb script in test/test_helper.rb and reopen and implement the guess_color_availability method.
Then you can just run the autotest command (or bundle exec autotest) from your project directory. When you save a file your tests will be run for the file that has been changed and the results will be fully colorized!


