Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Can't run ruby tests

$
0
0

I have IntelliJ IDEA 13.1.4 installed.  I have Ruby 1.9.3 and test-unit gem version 2.5.5 installed.  When I try to run tests, I get

 

/Users/xxx/.rvm/rubies/ruby-1.9.3-p545/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/xxx/Workspaces/project/acceptance_test/selenium-ruby/tests/ControlTest.rb

Testing started at 10:45 AM ...

/Users/kovalchicks/Library/Application Support/IntelliJIdea13/ruby/rb/testing/patch/testunit/test/unit/autorunner.rb:30:in `<class:AutoRunner>': uninitialized constant Test::Unit::AutoRunner::RUNNERS (NameError)

from /Users/xxx/Library/Application Support/IntelliJIdea13/ruby/rb/testing/patch/testunit/test/unit/autorunner.rb:29:in `<module:Unit>'

from /Users/xxx/Library/Application Support/IntelliJIdea13/ruby/rb/testing/patch/testunit/test/unit/autorunner.rb:28:in `<module:Test>'

from /Users/xxx/Library/Application Support/IntelliJIdea13/ruby/rb/testing/patch/testunit/test/unit/autorunner.rb:27:in `<top (required)>'

from /Users/xxx/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Users/xxx/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Users/xxx/.rvm/gems/ruby-1.9.3-p545@global/gems/test-unit-2.5.5/lib/test/unit.rb:2:in `<top (required)>'

from /Users/xxx/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Users/xxx/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Users/xxx/Workspaces/project/acceptance_test/selenium-ruby/tests/ControlTest.rb:5:in `<top (required)>'

from -e:1:in `load'

from -e:1:in `<main>'

 

Process finished with exit code 1

 

Searching online, I saw that test-unit might be conflicting with the bundled minitest, so I uninstalled test-unit.  With test-unit uninstalled, I get

 

/Users/xxx/.rvm/rubies/ruby-1.9.3-p545/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/xxx/Workspaces/project/acceptance_test/selenium-ruby/tests/ControlTest.rb

Testing started at 10:19 AM ...

/Users/xxx/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:298:in `to_specs': Could not find 'test-unit' (>= 0) among 52 total gem(s) (Gem::LoadError)

from /Users/xxx/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:309:in `to_spec'

from /Users/xxx/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:53:in `gem'

from /Users/xxx/Workspaces/project/acceptance_test/selenium-ruby/tests/ControlTest.rb:4:in `<top (required)>'

from -e:1:in `load'

from -e:1:in `<main>'

 

Process finished with exit code 1

 

Any ideas on how to get the tests running in IntelliJ?  I can run them from the command line fine.

 

Thanks in advance for your help.

 

Shawn K.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>