[Rake-devel] [PATCH] Make Ruby path configurable

Shinya Kasatani kasatani at gmail.com
Thu Mar 2 05:41:43 EST 2006


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.


I tried to write unit test for this patch, but I gave up...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: env_ruby.patch
Type: application/octet-stream
Size: 610 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20060302/59d9236c/env_ruby.obj

More information about the Rake-devel mailing list