Disclaimer: I'm extremely new to Ruby, and I'm getting very frustrated w/ this issue.
I'm trying to use Ruby 1.9.3 and do some basic unit tests. I have spent nearly a day trying to figure this out, and have got close, but come up dry. I've boiled this down to about the simplest I can (I hope).
I have the following Project structure, in ~/Dev/RubyTest193/
the contents are such:
def initialize( a_value )
@my_value = a_value
class MyObjectTest < Test::Unit::TestCase
me = MyObject.new( 42 )
assert_not_nil( me )
fail("Test to show failure")
MiniTest::Unit.runner = MiniTest::SuiteRunner.new
if ENV["RM_INFO"] || ENV["TEAMCITY_VERSION"]
MiniTest::Unit.runner.reporters << MiniTest::Reporters::RubyMineReporter.new
MiniTest::Unit.runner.reporters << MiniTest::Reporters::RubyMateReporter.new
MiniTest::Unit.runner.reporters << MiniTest::Reporters::ProgressReporter.new
# A sample Gemfile
group :test do
# gem "rails"
The tests do run, I see the output (1 pass, 1 fail) in the console window. However, I see the dreaded 'Unable to attach test reporter to test framework or test framework quit unexpectedly"
If I copy the contents fo the test/test-helper.rb into the test/myobject_test.rb, I see the results (one failed test).
I realize this has to be a very serious noob error, but I cannot figure this out. If I failed to include any info, I'll glady post what I can.
I'm running RubyMine 4.0.2 (Mac although when used on the PC, I have the same issue)
I have the minitest and minitest-reporters gems installed and up to date (as of this post)
Thanks for taking the time to read this