運行所有模型測試時發現rubyMine'MiniTest框架'錯誤'。rubyMine'無法附加測試記者測試框架'
我可以在常規命令行運行所有模型測試。 例如rake spec:models
當我使用rubyMine:
我可以運行一個模型測試好的。
然而,當我嘗試運行模型中的所有測試中,我得到
MiniTest framework was detected. It is a limited version of original Test::Unit framework. RubyMine/IDEA Ruby plugin test runner requires full-featured version of the framework, otherwise default console tests reporter will be used instead. Please install 'test-unit' gem and activate it on runtime.
我嘗試添加了「測試單元」我的Gemfile和rebundling但現在得到:
`/home/durrantm/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)
/home/durrantm/Downloads/RubyMine-3.2.3/rb/testing/runner/tunit_in_folder_runner.rb
Testing started at 9:33 AM ...
Work directory: /home/durrantm/Dropbox_not_syncd/webs/3/rubyists/spec/models}
Loading files....
=========================================
0 files were loaded.
=========================================
Searching test suites...
=========================================
0 test suites, 0 tests, 0 assertions, 0 failures, 0 errors
Process finished with exit code 0`
注:有趣}在工作目錄中。我仍然得到Unable to attach test_reporter to test fraemwork message
。
版本:Ubuntu的的RubyMine 3.2
我有一個類似的問題http://stackoverflow.com/questions/7575057/exception-message-no-such-file-to-load-in-rails-application,我的工作目錄指向應用程序的根目錄。請幫忙。謝謝! – Ava
這也解決了我的問題:/usr/local/rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in'require':can not加載這樣的文件 - spec_helper(LoadError) –