Cucumber - in RubyMine "Unable to attach test reporter to test framework or test framework quit unexpectedly"

I know this seems to be a familiar thread - but I get the same issue over and over as everyone else.  Here are my Gems:


source 'http://rubygems.org'

gem 'rails', '3.2.13'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'
#gem 'mysql2'
#gem 'yaml_db', :git => 'git://github.com/ludicast/yaml_db.git'

gem 'newrelic_rpm'
gem 'airbrake'
gem 'multi_json'
gem 'squeel'
gem 'acts_as_tenant'
gem 'periscope-activerecord'
gem 'devise'
gem 'devise_invitable'
gem 'devise-async'
gem 'state_machine'
gem 'rake'
gem 'rabl-rails'
gem 'decent_exposure'
gem 'comma'
gem 'delayed_job_active_record'
gem "daemons"
gem 'carrierwave'
gem 'cloudinary'
gem 'fog'
gem 'oj'
gem 'bootstrap-sass', '~> 2.3.1.0'
gem 'simple_form'
gem 'jquery-rails'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   "~> 3.2.3"
  gem 'coffee-rails', "~> 3.2.1"
  gem 'uglifier',     ">= 1.0.3"
end

group :test, :development do
  gem 'rspec-rails'
  gem 'spork' #, '~> 0.9.0.rc'
  gem 'database_cleaner'
  gem 'factory_girl_rails'
  gem 'faker'
  gem 'json_spec'
  gem 'bullet'
  gem 'rails_best_practices'
  gem 'simplecov', require: false
  gem 'rspec-prof'
  gem 'cucumber-rails'
end

# group :test do      (SV commented out these lines... 3 in group :test do)
#  gem 'cucumber-rails'
# end

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

Message was edited by: steve vaughan I'm running RubyMine 5.4.  But had same message in last version too

6 comments

Hi Steve,

it looks like the problem you have is the same as http://youtrack.jetbrains.com/issue/RUBY-13454
As a workaround for this you can do not use spork for cucumber tests.

Regards, Oleg.

0

Oleg, I went to Tool -> Edit Configurartions... screen.  Not a problem, but what I'm not sure of is "Use DRb server (see Tools | run Spork DRb Server...)" to be CHECKED?  or NOT CHECKED?

0

When CHECKED... (see reply above) I still get this

/Users/stevev777/.rvm/rubies/ruby-1.9.3-p392/bin/ruby -EUTF-8 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/stevev777/Documents/Documents/ZZ/**ZimZero**/ZZCode/DesertHeatRoR/script/cucumber /Users/stevev777/Documents/Documents/ZZ/**ZimZero**/ZZCode/DesertHeatRoR/features/regression/search.feature --expand --drb --color -r features
Testing started at 1:34 PM ...
WARNING: No DRb server is running. Running features locally:
Using the default profile...
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
cannot load such file -- features/support/patches/capybara (LoadError)
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/stevev777/Documents/Documents/ZZ/**ZimZero**/ZZCode/DesertHeatRoR/features/support/env.rb:14:in `<top (required)>'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:41:in `run!'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:43:in `execute!'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:20:in `execute'
/Users/stevev777/.rvm/gems/ruby-1.9.3-p392/gems/cucumber-1.2.5/bin/cucumber:14:in `<top (required)>'
/Users/stevev777/Documents/Documents/ZZ/**ZimZero**/ZZCode/DesertHeatRoR/script/cucumber:9:in `load'
/Users/stevev777/Documents/Documents/ZZ/**ZimZero**/ZZCode/DesertHeatRoR/script/cucumber:9:in `<top (required)>'
-e:1:in `load'
-e:1:in `<main>'

Process finished with exit code 1

and "Unable to attache test reporter...." message still remains

0

Hi Steve,

it should be unchecked.

Oleg.

0

Same issue - attached a file to help visulaize the problem.



Attachment(s):
MR-Problem-April.15.13.tiff
0

Hi Steve,

it looks like ruby is unable to load features/support/patches/capybara which is required from features/support/env.rb
I do not have your sources so it is question for you why it can not be loaded ;)

Regrads, Oleg.

0

Please sign in to leave a comment.