Spork minitest

Hi!

I need some help with running spork minitest with rubymine version 5.0.2
From what i understand there are 2 problems:

1) Starting spork with this configuration



  gem 'spork', '~> 0.9.2'
  gem 'spork-minitest', '~> 1.0.0.beta2'



WINDOWS:

C:\TOOLS\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest C:/TOOLS/Ruby193/bin/spork testunit

Couldn't find a supported test framework that begins with 'testunit'

Supported test frameworks:

( ) Cucumber

(*) MiniTest

( ) RSpec

Legend: ( ) - not detected in project   (*) - detected

Process finished with exit code 1


OS X:


/Users/mlech/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest /Users/mlech/.rvm/gems/ruby-1.9.3-p362@rails3/bin/spork testunit

Couldn't find a supported test framework that begins with 'testunit'

Supported test frameworks:

( ) Cucumber

(*) MiniTest

( ) RSpec

Legend: ( ) - not detected in project   (*) - detected

Process finished with exit code 1


Running 'spork minitest' in a console works just fine!




2) Runing individual test script with 'bundle exec' and 'use Drb server' options enabled

WINDOWS:

         Error running merchant_test: Spork tests runner 'testdrb' script wasn't found.

OS X:

Error running merchant_test: Spork tests runner 'testdrb' script wasn't found.

3 comments

Hi,

we do not support spork-minitest, you should use spork-testunit instead.

Regards, Oleg.

0

Thanks for a quick reply!

Well I hope You plan to include it in future release. If you support minitest then it is a must have gem and it should be supported.

For those who struggle with my problem we've found a kind of 'solution'...

Include this in your Rakefile:


desc 'Run all tests using Spork'
task "spork:test" do
  require 'drb'

  port = ENV['SPORK_PORT'] || 8988
  uri = ENV['SPORK_URI'] || "druby://127.0.0.1:#{port}"

  DRb.start_service
  DRbObject.new_with_uri(uri).run(FileList['./test/**/*_test.rb'], $stderr, $stdout)
end

desc 'Start Spork server'
task "spork:start" do
  require 'spork'
  require 'spork/runner'
  Spork::Runner.run(%w(minitest), STDOUT, STDERR)
end


Then you can configure two seperate rake tasks in Rubymine.
Their names should match the names of the added tasks.


Cheers,

Rafał
 

0

Hi,

Well, we do not have this in our plan because nobody have asked ;)
Feel free to file a ticket about this in our tracker - http://youtrack.jetbrains.com/issues/RUBY

Regards, Oleg.

0

Please sign in to leave a comment.