Random error in ci_reporter


M

Michael Corr

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 :: [email protected]] 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 :: [email protected]] Loaded suite
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
** [out :: [email protected]] Started
** [out :: [email protected]] .....
*** [err :: [email protected]]
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 :: [email protected]] 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 :: [email protected]] 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 :: [email protected]] 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 :: [email protected]] 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 :: [email protected]] from
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`to_proc'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in `call'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in
`notify_listeners'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in `each'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in
`notify_listeners'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:54:in
`run_suite'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in
`start_mediator'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
*** [err :: [email protected]] from C:/Ruby/lib/ruby/1.8/test/unit.rb:279
*** [err :: [email protected]] from
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
*** [err :: [email protected]] rake aborted!
*** [err :: [email protected]] Command failed with status (1):
[C:/Ruby/bin/ruby.exe -I"lib;test" "C:/Ruby...]
*** [err :: [email protected]]
*** [err :: [email protected]] (See full trace by running task with
--trace)
command finished
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top