2 Mar 2006 11:41
[PATCH] Make Ruby path configurable
Shinya Kasatani <kasatani <at> gmail.com>
2006-03-02 10:41:43 GMT
2006-03-02 10:41:43 GMT
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
_______________________________________________ Rake-devel mailing list Rake-devel <at> rubyforge.org http://rubyforge.org/mailman/listinfo/rake-devel(Continue reading)
RSS Feed