Unable to attach test reporter to test framework or test framework quit unexpectedly

I am trying to run Ruby Test::Unit tests in IDEA and getting "Unable to attach test reporter to test framework or test framework quit unexpectedly". The tests do run and I can see the console output indicating successful/failed tests, but IDEA does not display the green/red indicator per test. This happens for both full script and individual tests.

This is IDEA 11.1.2 with JRuby 1.6.7 (Ruby 1.9) and the test-unit 2.4.9 gem (anything newer than that causes a 'No tests found error')

Any ideas on how to fix this?

5 comments
Comment actions Permalink

It looks like you use minitest library and to integrate it with RM you need to perform several steps
Here is a help topic about it http://www.jetbrains.com/ruby/webhelp/minitest.html

Let me know if this will not help or you have more questions.

Regards, Oleg.

0
Comment actions Permalink

We are not using MiniTest - we use Test::Unit (even though we use Ruby 1.9) because we have had problems in the past with minitest and IDEA and/or TeamCity. This has worked properly for a long time but now seems to have stopped working, possibly due to some interaction between the gems and IDEA or some bad configuration.

0
Comment actions Permalink

Ok, could you please provide your Gemfile and gem envirnoment (I think you should have "Show Gem Environment" item in Tools menu)

Thanks, Oleg.

0
Comment actions Permalink

This started working again when I rolled the test-unit gem back to 2.4.8.
However, the latest version of that gem is 2.5.1, so maybe there's an issue with IDEA and newer versions of the test-unit gem?

0
Comment actions Permalink

The only problem with test-unit 2.4.9 I know is http://youtrack.jetbrains.com/issue/RUBY-11239
Perhaps this is your case, but I'm not sure since it is supposed to work with 2.5.0 and later (though we have tested on recent version of our code, which is included
RubyMine 4.5 and will be also available as ruby plugin for Idea 12).  You could try next available Idea 12 EAP build with Ruby plugin to check if the problem fixed or not,
but for now you have to use test-unit 2.4.8.

Oleg.

P.S. if you discover that Idea 12 EAP or RM 4.5 don't resolve the problem please file a ticket in out tracker http://youtrack.jetbrains.com/

0

Please sign in to leave a comment.