在ruby中运行测试文件的错误消息?怎么了?请帮忙!

时间:2010-05-29 01:09:19

标签: ruby

C:\Users\rahul\Documents\University of California, Santa Barbara\scheduler\sbsch
eduler\gold_api>ruby access_gold_test.rb
C:/Ruby/lib/ruby/gems/1.8/gems/test-unit-2.0.0/lib/test/unit/testresult.rb:28: u
ninitialized constant Test::Unit::TestResult::TestResultFailureSupport (NameErro
r)
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
        from C:/Ruby/lib/ruby/gems/1.8/gems/test-unit-2.0.0/lib/test/unit/ui/tes
trunnermediator.rb:9
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
        from C:/Ruby/lib/ruby/gems/1.8/gems/test-unit-2.0.0/lib/test/unit/ui/con
sole/testrunner.rb:9
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
        from C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:25
        from C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:214:in `[]'
        from C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:214:in `run'
        from C:/Ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
        from C:/Ruby/lib/ruby/1.8/test/unit.rb:278
        from access_gold_test.rb:34

1 个答案:

答案 0 :(得分:1)

您的测试可能是针对不同版本的Test :: Unit编写的。