Redgreen plugin not working with Ruby 1.9.1

Redgreen in action
You have upgraded to Ruby 1.9.1 and now (after manually changing & compiling mongrel to work) you noticed that redgreen plugin is not working. Whenever you start test you get something similar to this:

`require': no such file to load -- test/unit/ui/console/testrunner (MissingSourceFile)

Just type this in:

sudo gem install test-unit -v 1.2.3

If you are one of those “problematic” people that want to know why is this working… truth is much simpler than I would like it to be considering that I lost 2 hours over this :) Ruby 1.9.1 replaced test-unit framework with minitest (because it’s supposed to be better). Redgreen plugin depends on console-runner from test-unit so you need to install it as u gem. (Older version, because the new 2.0.3 changed API just enough so redgreen is not working)

  • Of course you may not want to load test_unit. In which case, you can just use minitest with the mynyml version of redgreen here: http://github.com/mynyml/redgreen.
  • Thank you!
  • Very helpful, thanks! I can't live without the red and the green. And test-unit sound much more manly than minitest.
  • Kresimir Bojcic
    Red, green crack :)
blog comments powered by Disqus