Hi, I've made a small patch that allows you to specify Ruby path which is used when executing tests. I needed it to use rcov (code coverage tool) with Rake in my Rails appilcation. With this patch, you can run rcov with your test using the following command line:
rake test_units RUBY=rcov Note that this doesn't work when warning is set to true, because rcov doesn't recognize "-w" option. I found this article describing how to use rcov with Rake, but rather than adding Rake tasks, I thought it would be smarter if Rake had an option to specify Ruby path. http://asplake.blogspot.com/2006/01/test-coverage-with-rcov-and-rake-962.html I tried to write unit test for this patch, but I gave up... Thanks, Shinya
env_ruby.patch
Description: Binary data
_______________________________________________ Rake-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/rake-devel
