How to make Rubymine work with mini-mesh

There is no way to configure Rubyine to work with a mini-type. These all rule me out exceptions

Unable to connect test reporter to test framework or test environment unexpectedly

Also, I cannot run the test alone (only all test jobs work) because in this case the context is not loaded and all my classes become undefined constants ( NameError: uninitialized constant <MyVariableType>

).

I am currently working with RubyMine 5 through Windows 7. (Ruby 1.9.3).

If anyone knows how to set it up correctly, I would be very grateful for your help.

+3


source to share


3 answers


Good perfect! I finally solve all my problems and now my ruby ​​process works with miniature.

Brief instruction:

  • Read this manual and take it very carefully step by step.

  • If that helps, then say "Yohuu !!!" and the dancing victorious jig, if still not working correctly, go to step 3

  • Add the 'test-unit' gem to your gem file and update with bundler.

  • Remember to require 'test_helper'

    add add at the top of the file when creating your test .



IMPORTANT: your test method names must start with the 'test_' pattern, for example test_my_supercool_method

UPD 1 . If you're using Ruby 2.0, you don't need to use the win32Console gem on the Windows platform, even though the jetbrains file says you should.

+10


source


If you follow this tutorial ( https://www.jetbrains.com/help/ruby/2016.1/minitest.html?origin=old_help ) you should not include minitest-reporters

in your Gemfile or do the following:

require 'minitest/reporters'
MiniTest::Reporters.use!

      



in the test_helper.rb file if you are using MiniTest 5 or newer. I followed a tutorial that is a little out of date and ran into this problem. Make sure to delete the .idea directory and restart RubyMine and you should be good!

+1


source


I just went through this with an undefined method method error and got a green pass when tests were failing and failing.

Read the notes carefully, if you are using minitest> 5.0 you don't need the minitest-reporters gem.

If you enable it, perhaps, like me, following the instructions, you get errors and no errors are reported - (in my case, anyway). So open and remove the required minitest / reporters from your tests, and MiniTest :: Reporters.use! and everything should be fine.

0


source







All Articles