[Wtr-general] Will 'ci_reporter' work within 'test unit' 'test suite' execution?
Brad
forum-watir-users at openqa.org
Fri Mar 30 20:56:47 EDT 2007
Hi,
I'm trying to figure out how to use 'ci_reporter' within 'test unit' and 'test suite'. Below is the code that I had working when 'test reporter' was active. Unsure on the line labeled 'what goes here'.
require 'rubygems'
gem 'ci_reporter'
require 'ci/reporter/rake/test_unit_loader'
require 'test/unit/testsuite'
require 'test/unit/ui/console/testrunner'
#require 'test/unit/ui/reporter'
require 'tc_a'
require 'tc_b'
require 'tc_c'
require 'fileutils'
require 'stringio'
$args = ARGV[0]
class TestSuite_AllTests
def self.suite
suite = Test::Unit::TestSuite.new("Tests")
suite << A.suite
suite << B.suite
suite << C.suite
return suite
end
end
FileUtils.mkdir_p 'build/report'
FileUtils.mkdir_p 'logs'
$args = 'report'
if $args == "report"
**what goes here**
#Test::Unit::UI::Reporter.run(TestSuite_AllTests,'build/report',:html)
elsif
Test::Unit::UI::Console::TestRunner.run(TestSuite_AllTests)
end
Thanks,
Brad
More information about the Wtr-general
mailing list