Ruby1.8でci_reporterを使うと

Ruby 1.8でci_reporterを使うと以下のようにエラーが発生.
builderを入れているにもかかわらず,エラーが発生します.

原因は単にrequire "rubygems"が抜けている(というか,1.9以降で作られている?)ので
test_suite.rb:84のrequireの上辺りにrubygemsをrequireしましょう.これでおっけーです.

でも,1.8でもMacのrubyだとrubygemsのrequire省略しても動くんだよなぁ...
なんかパッチでも当ててるのかな.

./var/lib/gems/1.8/gems/cireporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/testsuite.rb:84:in require': no such file to load -- builder (LoadError)
from /var/lib/gems/1.8/gems/ci_reporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/test_suite.rb:84:in
createbuilder'
from /var/lib/gems/1.8/gems/ci
reporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/testsuite.rb:91:in `toxml'
from /var/lib/gems/1.8/gems/cireporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/reportmanager.rb:18:in write_report'
from /var/lib/gems/1.8/gems/ci_reporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/report_manager.rb:17:in
open'
from /var/lib/gems/1.8/gems/cireporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/reportmanager.rb:17:in write_report'
from /var/lib/gems/1.8/gems/ci_reporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/test_unit.rb:145:in
finishsuite'
from /var/lib/gems/1.8/gems/ci
reporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/testunit.rb:105:in `teststarted'
from /var/lib/gems/1.8/gems/cireporter-1.8.4/lib/ci/reporter/rake/../../../ci/reporter/testunit.rb:7:in to_proc'
from /usr/lib/ruby/1.8/test/unit/util/observable.rb:78:in
call'
from /usr/lib/ruby/1.8/test/unit/util/observable.rb:78:in notify_listeners'
from /usr/lib/ruby/1.8/test/unit/util/observable.rb:78:in
each'
from /usr/lib/ruby/1.8/test/unit/util/observable.rb:78:in notify_listeners'
from /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:47:in
runsuite'
from /usr/lib/ruby/1.8/test/unit/testcase.rb:74:in run'
from /usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in
run'
from /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in each'
from /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
run'
from /usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in run'
from /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in
each'
from /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in run'
from /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in
run
suite'
from /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in start_mediator'
from /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in
start'
from /usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in run'
from /usr/lib/ruby/1.8/test/unit/autorunner.rb:216:in
run'
from /usr/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
from /usr/lib/ruby/1.8/test/unit.rb:279
from /usr/lib/ruby/1.8/rake/raketestloader.rb:5
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 -w -I"lib:test" "/usr/lib…]

Posted at : 2013-05-16 08:16:45 / Category : none

Comments

まだコメントはありません / No comment.

Send comment


Name


Mail-address (empty is OK. If you want to notify update, please fill mail-address.)


Bot check code (241222 と入力してください / Please input 241222.)