Random error in ci_reporter

Hi
I'm running ci_reporter to convert rake unit tests to xml format, to
integrate with my cruise control build reports.

Everything is working well and was easy to setup. However, on occasion,
ci_reporter seems to fail to generate the xml file to save the test
results in - so it throws a "No such file or directory" error when the
rake target completes.

The odd thing is that if I run the same tests again immediately after,
it runs fine. The failure seems to be intermittent

In the output below, ci_reporter generates an error when trying to run
the "si_test.rb" file. I'm guessing it's at this point it fails to
create the corresponding 'TEST-SITest.xml' test results file - but
doesn't bail out until it tries to write the test results to the file,
at the end.

Any ideas why ci_reporter would fail to create the XML results file? I'm
running rake/ruby on a Windows 7 PC, through cygwin

thanks
Michael

* executing "rake ci:setup:testunit si
REPORTS=\"rake_results_SensorInterface\"

*** [err :: build@101.0.0.1] C:/Ruby/bin/ruby.exe -I"lib;test"
"C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
"test/products/si/si_test.rb"
C:/Ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/test_unit_loader.rb
** [out :: build@101.0.0.1] Loaded suite
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
** [out :: build@101.0.0.1] Started
** [out :: build@101.0.0.1] .....
*** [err :: build@101.0.0.1]
C:/Ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/../../../ci/reporter/report_manager.rb:17:in
`initialize': No such file or directory -
rake_results_SensorInterface/TEST-SITest.xml (Errno::ENOENT)
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/../../../ci/reporter/report_manager.rb:17:in
`open'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/../../../ci/reporter/report_manager.rb:17:in
`write_report'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/../../../ci/reporter/test_unit.rb:114:in
`finish_suite'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2/lib/ci/reporter/rake/../../../ci/reporter/test_unit.rb:90:in
`finished'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`to_proc'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in `call'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in
`notify_listeners'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in `each'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in
`notify_listeners'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:54:in
`run_suite'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in
`start_mediator'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
*** [err :: build@101.0.0.1] from C:/Ruby/lib/ruby/1.8/test/unit.rb:279
*** [err :: build@101.0.0.1] from
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
*** [err :: build@101.0.0.1] rake aborted!
*** [err :: build@101.0.0.1] Command failed with status (1):
[C:/Ruby/bin/ruby.exe -I"lib;test" "C:/Ruby...]
*** [err :: build@101.0.0.1]
*** [err :: build@101.0.0.1] (See full trace by running task with
--trace)
command finished

ยทยทยท

--
Posted via http://www.ruby-forum.com/.