RubyMine 2017.1 EAP 6: Test Generation for Rails, Parameter Hints, Markdown Plugin
RubyMine 2017.1 EAP 6 (build 171.3019.14) is out, featuring the long-awaited ability to create tests for Rails entities (controllers, models, helpers, mailers) from the Go to test action. This EAP also brings new parameter hints for Ruby, updated markdown plugin, and support for Cucumber 3.
Creating tests with Go to test
Imagine that for some reason you have a controller without a related test. In this case you can simply use the same Go to test (Navigate | Test) to generate the missing test:
If you don’t have the related testing framework installed, RubyMine will suggest to install the missing gem (currently works with RSpec and Test::Unit; more frameworks to be added):
Click “Bundle it” to add the gem to Gemfile, open the
bundle install dialog and run the bundler. The IDE will install the missing gem and generate the test:
Note that you can roll this back in case something goes wrong.
In this EAP you will stumble across the newly developed parameter hints, we’ve added to increase the readability of Ruby code. Note that this feature is still under development and will be updated in future EAPs. Feel free to toggle these hints and let us know if you find room for improvement:
Updated structure view for markdown files
As for other improvements, we’ve added support for Cucumber 3 and fixed a number of bugs.
Download this Early Access Program from our What’s new page.
See our release notes for the full list of improvements, and share your thoughts in the comments below.
Your RubyMine Team