From: Jan Friedrich Date: 2007-02-03T21:45:11+09:00 Subject: Re: Mixing Rake and Turn Daniel Berger wrote: > Upon further review, using TestTask#ruby_opts *does* work. The bug was > mine. > > Anyhoo, for the sake of future Googlers, this is how you do it: > > desc "Runs the test suite for the Foo class" > Rake::TestTask.new('test_foo') do |t| > t.test_files = FileList['test/foo/*.rb'] # Or whatever > t.ruby_opts << '-rturn' > t.warning = true > end But you have now a dependency to turn. If you share your program with others they have to install turn if they want to use the test task. :( I prefer at the moment the following snipped on top of every test file: require 'test/unit' begin require 'turn' rescue LoadError; end So you can running tests with or without turn installed. Other ideas? Regards, Jan