Running a single test

Hi,

I'm having trouble running a single rspec example in RubyMine 3.1.1, I move my cursor to the example, right click and click run rspec test and it comes back saying "No tests were found", I would have just expected this to work.  Is there something configured incorrectly?  Any help would be great as I tend to bounce back to textmate for this functionality and wish I didn't have to.

Thanks,
Jay     

3 comments
Comment actions Permalink

Hi Jay,

Please attach full console output, also which rspec version do you use, is you project is a rails application?

0
Comment actions Permalink

Output

/Users/jperry/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/jperry/.rvm/gems/ruby-1.9.2-p0/bin/rspec /Users/jperry/workspace/github/teamcity/spec/teamcity/teamcity_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example TeamCity\#get_rest_api_url\ with\ good\ data
Testing started at 10:43 AM ...
0 examples, 0 failures, 0 passed
Finished in 0.000208 seconds
Coverage report generated for RSpec to /Users/jperry/workspace/github/teamcity/spec/teamcity/coverage. 0 / 0 LOC (0.0%) covered.
Empty test suite.

Process finished with exit code 0




It is executing an rspec runner, I'm using rspec 2.6.0, and the project is a straight ruby project.

Thanks,
Jay
0
Comment actions Permalink

perryjason wrote:


Output

/Users/jperry/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/jperry/.rvm/gems/ruby-1.9.2-p0/bin/rspec /Users/jperry/workspace/github/teamcity/spec/teamcity/teamcity_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example TeamCity\#get_rest_api_url\ with\ good\ data
Testing started at 10:43 AM ...
0 examples, 0 failures, 0 passed
Finished in 0.000208 seconds
Coverage report generated for RSpec to /Users/jperry/workspace/github/teamcity/spec/teamcity/coverage. 0 / 0 LOC (0.0%) covered.
Empty test suite.

Process finished with exit code 0



It is executing an rspec runner, I'm using rspec 2.6.0, and the project is a straight ruby project.

Thanks,
Jay

It's because rspec team broke behaviour of "--example" cmdline option in 2.6.0. We've updated our cucumber support in RubyMine 3.2 EAP see http://blogs.jetbrains.com/ruby/2011/06/rubymine-3-2-eap-opens-rails-3-1-coffescript-yard-rails-checklist-and-more/. So you can try 3.2 EAP or just use cucumber < 2.6.0

0

Please sign in to leave a comment.