This Question is Possibly Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
3 Replies Last post: Jul 14, 2013 7:52 PM by Oleg Sukhodolsky  
Aziz Light Newbie 30 posts since
Mar 15, 2013
Currently Being Moderated

Jul 13, 2013 2:25 PM

Run the current Rspec spec file only

Is there a way to run the current spec file only in RubyMine? By opposition to running all the specs everytime a file is modified.

Oleg Sukhodolsky JetBrains 868 posts since
Apr 4, 2012
Currently Being Moderated
Jul 13, 2013 3:32 PM in response to: Aziz Light
Re: Run the current Rspec spec file only

To run one specific spec you can open it in editor and press Ctrl-Shift-F10 (on Windows) the same action available in context menu.

Also you can do this when the file is selected in Project View.

Note that if you edit spec file and press this shortcut it will run the spec in which caret is located (not all file)

 

Also RM allows run all specs/tests in particular directory. I'd suggest to check our help about this.

 

Hope this helps, Oleg.

Oleg Sukhodolsky JetBrains 868 posts since
Apr 4, 2012
Currently Being Moderated
Jul 14, 2013 7:52 PM in response to: Aziz Light
Re: Run the current Rspec spec file only

Hi,

 

auto-test functionality is available for specs too. 

As for running single spec/example when something has been changed - IDE (or any other tool) can not do this since it doesn't know which specs/examples affected by the change.

 

Oleg.

More Like This

  • Retrieving data ...