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.
Subscribe to Blog updates
Thanks, we've got you!
The RubyMine 2023.3 Early Access Program Is Open!
Hello everyone, The third RubyMine Early Access Program of 2023 is underway! The key change in the first EAP build is an important indexing optimization. By refactoring our code base, we’ve doubled RubyMine’s indexing speed compared to v2023.1. This is particularly noticeable when working wi…
Performance Improvements in RubyMine 2023.1
Hello everybody, The new release is fast approaching, so it’s time to unveil the performance enhancements you can expect from RubyMine 2023.1. Faster code completion When developing and supporting RubyMine, we analyze a great load of anonymized usage data. A lot of recent data pointed to the fact t…
RubyMine 2023.1 EAP5 Is Out!
Hello everyone, RubyMine 2023.1 EAP5 is now available! Below you can find the most notable features in this build. We encourage you to try them out and share your feedback in the comments or in our issue tracker. Migration of Ruby code to the Symbol API In order to improve code insight actions such…
The RubyMine 2023.1 EAP2 Is Out!
The RubyMine 2023.1 Early Access Program recently started and EAP2 is already here! You can get the new build from our website or via the free Toolbox App. In this post, we’ll highlight some of the most important updates included in the new EAP version. Rails 7: support for turbo-rails complet…