On 3/30/07, Brad <[EMAIL PROTECTED]> wrote:
> 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'.
>
> 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

CI::Reporter auto-injects itself when you require
'ci/reporter/rake/test_unit_loader'.  Try eliminating the entire if
... else ... end block and just leaving the TestRunner.run line:

Test::Unit::UI::Console::TestRunner.run(TestSuite_AllTests)

/Nick
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to