This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Aug 23, 2013 1:36 PM by Oleg Sukhodolsky  
Donovan Young Newbie 5 posts since
Mar 27, 2013
Currently Being Moderated

Aug 22, 2013 6:53 PM

LoadError while attempting to run minitest under RubyMine EAP Momiji

I am having an issue trying to run minitest under RubyMine EAP Momiji -- it fails to run with an "Exception message: LoadError".

 

Trying to run the following minitest...


require 'minitest/autorun'
require 'minitest/reporters'
require 'cinch-storage'

MiniTest::Reporters.use!

module Cinch
  module Extensions
    class TestStorage < Minitest::Unit::TestCase
      def setup
        @test = Cinch::Extensions::Storage.register(:test)
        @test[:test1] = 'value1'
      end

      def test_storage_exists
        assert true, Storage.exists?(:test)
      end

    end
  end
end

 

Results in the following error from within RubyMine (via 'Run all tests in: test'):

 

 

Fail to load: /Users/dyoung/Dropbox/Source/dyoung/cinch-storage/test/test_storage.rb:1
      Exception message: LoadError
["/Applications/RubyMine EAP.app/rb/testing/patch/testunit/minitest/unit.rb:24:in `<top (required)>'",
"/Users/dyoung/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/minitest/autorun.rb:15:in `require'",
"/Users/dyoung/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/minitest/autorun.rb:15:in `<top (required)>'",
"/Users/dyoung/Dropbox/Source/dyoung/cinch-storage/test/test_storage.rb:1:in `require'",
"/Users/dyoung/Dropbox/Source/dyoung/cinch-storage/test/test_storage.rb:1:in `<top (required)>'",
"/Applications/RubyMine EAP.app/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb:51:in `require'",
"/Applications/RubyMine EAP.app/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb:51:in `block in require_all_test_scripts'",
"/Applications/RubyMine EAP.app/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb:44:in `each'",
"/Applications/RubyMine EAP.app/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb:44:in `require_all_test_scripts'",
"/Applications/RubyMine EAP.app/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb:134:in `<top (required)>'",
"-e:1:in `load'", "-e:1:in `<main>'"]

 

 

However, running this from the terminal works as expected.

 

 

% ruby test/test_storage.rb

Run options: --seed 32941

Started


1/1: [==================================] 100% 00:00:00


Finished in 0.02310s

1 tests, 1 assertions, 0 failures, 0 errors, 0 skips

Oleg Sukhodolsky JetBrains 735 posts since
Apr 4, 2012
Currently Being Moderated
Aug 22, 2013 7:05 PM in response to: Donovan Young
Re: LoadError while attempting to run minitest under RubyMine EAP Momiji

Hi,

 

do you have minitest in your Gemfile?  What kind of project do you have?

 

Regards, Oleg.

Oleg Sukhodolsky JetBrains 735 posts since
Apr 4, 2012
Currently Being Moderated
Aug 23, 2013 1:36 PM in response to: Donovan Young
Re: LoadError while attempting to run minitest under RubyMine EAP Momiji

Hi,

 

I've tried your project with rspec added and everything works fine for me

Could you please try to restory rspec dependecy and see if the problem is still reproducible for you.

If so either commit Gemfile.lock to the repo (some dedicated branch perhaps) and I will be able to reproduce the problem locally.

 

Thanks in advance, Oleg.

More Like This

  • Retrieving data ...