Improved Minitest Support – Action Required
We have updated Minitest support in RubyMine 2020.3.4 and 2021.1.1.
The new approach resolves the issues that occasionally occurred while running Minitest tests, such as memory leaks or irrelevant test states, and makes the overall functionality more stable.
Previously, RubyMine used the minitest-reporters gem, which is no longer used in the reworked Minitest support. To avoid conflicts with the new implementation, this gem should not be used to run tests in RubyMine.
If you use Minitest, please update your project as follows. In your Minitest configuration file (/test/test_helper.rb), replace MiniTest::Reporters.use!
with Minitest::Reporters.use! unless ENV['RM_INFO']
.
Should you encounter any problems, we encourage you to report them to our issue tracker.
The new implementation requires minitest gem v5.0 or higher. You can still use the older versions and launch tests from the console, but RubyMine’s GUI actions will be unavailable.
The affected RubyMine versions are 2020.3.4 and 2021.1.1, and higher.
Note: Pre-release versions of RubyMine 2020.3.4 or 2020.1.1 required removing the minitest-reporters
gem completely. If you have already updated your project according to the previously published instructions, there’s no need to update it again.
However, if you wish to keep the minitest-reporters
gem in your project, please use the instructions mentioned above instead.
We’d like to thank everyone who shared their feedback with us, it has helped us with this update.
Happy developing!
The RubyMine team