Question

I am having a problem running the 'test' Rake task from IntelliJ Idea in Ruby On Rails application:

Error running test: File 'test/unit/autorunner.rb' wasnt found in $LOAD_PATH of Ruby SDK with interpreter: '{1}'

But the file is located at %RUBY_HOME%/lib/ruby/1.8/test/unit and I have no problems when running other rake tasks.

Running MS Windows XP

Please advice.

Was it helpful?

Solution

sorry for the answer I just noticed it's a 2 year old question ...

i hit a similar issue with the test runner in TeamCity - I'm really not sure as I do not use RubyMine but it might be the same issue (considering they use the same code base for their products) ...

it helper when I updated the test-unit gem from the built in 1.x version to an explicit 2.x :

group :test do
  gem 'test-unit', '2.1.2'
  ...
end

then bundle update as usual, hope it helps

OTHER TIPS

I ran into this issue with 2.1.9 after upgrading RubyMine from 2017.2.1 to 2017.2.4. I was able to select the proper version by going into Preferences -> Languages & Frameworks -> Ruby SDK and Gems -> [my ruby version] -> scrolling down to test-unit -> and selecting the specific version and hitting [Apply].

(We don't have test-unit in our Gemfile otherwise and I was wary of applying a change to a project that was specifically for a single editor's use case.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top