Early Access Program Features

What’s mining: sweeter Cucumber in RubyMine 3.2

We’ve spent some time in this iteration to add some nice and smart features to Cucumber tests editing. Here’s what you can expect in RubyMine 3.2. And you can already try this in recent pre-release builds.

Cucumber step usage search

Usages search is one of the core features of RubyMine and now it also works for Cucumber steps.
You can search for usages of a step from a scenario in a .feature file or from its definition in a _step.rb file.

‘Create Step Definition’ quickfix automatically creates arguments from <params>

If you create a step definition with parameters using the quick-fix

That’s what you got before RubyMine 3.2

And that’s what you get now.

Much better, right?

Examples tables formatting

Of course RubyMine can format table columns making them look good.
All you need to remember is the ‘Reformat code’ action hotkey: Ctr+Alt+L/⌘⌥L.

But we went further and now the table vertical line symbol is automatically inserted at the correct position as you type.

Duplicate step definitions inspection

The inspection verifies regular expressions inside step definitions across multiple files and reports a warning if equal definitions found.
We found it really useful for big test codebases such as ours.

Multireference cucumber step

Sometimes a step in a scenario can resolve to different step definitions, based on the parameters. Now RubyMine is smart enough to understand it and you can navigate to the exact step you need.

Calling Steps from Step Definitions

If you have a step definition that calls other steps RubyMine can navigate to those steps using ‘Go to Declaration’ (Ctr+B/⌘B)

This is it for now.
You’re welcome to try it and let us know what you think.

Comments below can no longer be edited.

6 Responses to What’s mining: sweeter Cucumber in RubyMine 3.2

  1. Avatar

    MarcelWinkelkotte says:

    July 18, 2011

    Will this feature be available in IntelliJ IDEA too ?

  2. Avatar

    Oleg Shpynov says:

    July 18, 2011

    All the functionality is already available for IntellIJ IDEA as a part of Ruby plugin.

  3. Avatar

    Eugene Toporov says:

    July 18, 2011

    @MarcelWinkelkotte: Sure, all this is already available as part of Ruby plugin for IntelliJ IDEA

  4. Avatar

    Carl Youngblood says:

    July 21, 2011

    Might I recommend that your table formatting tool would be even cooler if it had the option of right-aligning numeric values? Numeric values usually default to being right-aligned in spreadsheets so that magnitudes can more easily be compared.

  5. Avatar

    Eugene Toporov says:

    July 21, 2011

    Carl Youngblood: Great idea Carl! Could you please submit it to YouTrack? http://youtrack.jetbrains.net/issues/RUBY
    Thanks! I’ll vote 🙂

  6. Avatar

    Graham Berks says:

    November 16, 2011

    Can you alignment of values in the tables to be to the right ? Be helpful for numeric’s.

Discover more