51Testing软件测试论坛

标题: ruby1.8升级到1.9.2导致test unit执行报错 [打印本页]

作者: huhuhan    时间: 2012-12-3 17:54
标题: ruby1.8升级到1.9.2导致test unit执行报错
ruby1.8升级到1.9.2后执行“ Test::Unit::UI::Console::TestRunner.run(eval(caseClassName))”语句报错。报错信息:
c:/Ruby192/lib/ruby/gems/1.9.1/gems/ci_reporter-1.6.5/lib/ci/reporter/test_unit.rb:68:in `initialize': uninitialized constant Test::Unit::TestCase::STARTED (NameError)
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/ci_reporter-1.6.5/lib/ci/reporter/rake/test_unit_loader.rb:31:in `new'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/ci_reporter-1.6.5/lib/ci/reporter/rake/test_unit_loader.rb:31:in `setup_mediator'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/test-unit-2.5.3/lib/test/unit/ui/console/testrunner.rb:63:in `setup_mediator'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/test-unit-2.5.3/lib/test/unit/ui/testrunner.rb:22:in `start'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/test-unit-2.5.3/lib/test/unit/ui/testrunnerutilities.rb:24:in `run'


test-unit版本为:2.5.3
此问题折磨了好几天了,哪位知道能否指点一下,不胜感谢
作者: huhuhan    时间: 2012-12-4 11:57
网上查了下,有说"Ruby 1.9 用新的单元测试框架MiniTest替换了1.8版本中的Test::Unit测试框架"。应该是这个原因导致的,但是不知道如何解决此问题




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2