Liquid Media's Apps

Running Rails tests in graphical mode

While working on a test suite for a project I came across a line in one of my books that mentioned that Ruby's Test::Unit framework has a graphical mode, just there so that your tests can have a slower startup time than ever before. The tk mode works out-of-the-box on OS X Leopard:

ruby test/test_name.rb -r tk

To increase your test runtimes when using rake under Rails, try:

rake TESTOPTS=--runner=tk
Tagged graphics, rails, ruby, testing, and tk.
blog comments powered by Disqus