On 2/23/07, Brian Reynolds <[EMAIL PROTECTED]> wrote:
Continuous Integration Enthusiast but Ruby Newbie here... First off, Nick, thanks for putting something together for test reporting. Now down to business, I want to make my watir tests display in CruiseControl. I can run a ruby test easy enough from ant, but don't know how to get the ci_reporter class to print out my results so that it gets displayed in the build report. Can someone show me how to alter this Watir sample test to use ci_reporter? *********************** require 'watir' include Watir require 'test/unit'
require 'rubygems' require 'ci/reporter/rake/test_unit_loader' should work, if you have the gem installed. (I guess the "rake" in the path doesn't make much sense here :) You should only have to require it once for your whole test suite (e.g., to avoid cluttering requires for each test case class), so you could put it in a test_helper.rb file if you have one. The other bit is that it will write its report files to "test/reports", unless you set the ENV variable "CI_REPORTS" to a directory where they should be written. This directory should be in synch with CruiseControl. Also, have a look at http://caldersphere.rubyforge.org/ci_reporter/ and let me know if any of the docs are unclear (plus I may not have captured all these details there in my haste to get a release out). Since this is a little off-topic for this list, feel free to mail off list if you have more questions. Cheers, /Nick
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
