guard / guard-test

Guard::Test automatically run your tests (much like autotest)
http://rubydoc.info/gems/guard-test/frames
MIT License
95 stars 38 forks source link

DRb:DRBUnknown - 0% and other unexpected behavior #23

Closed davidfrey closed 11 years ago

davidfrey commented 12 years ago

I started a Rails 3.2 project with Test::Unit, guard, and spork. Spork and guard appear to be running correctly, but at the end of each run I get output like the following whether or not all or none of the tests passed:

Finished in 0.540066 seconds.

#<DRb::DRbUnknown:0x007ff00bbdf288>
0% passed

20.37 tests/s, 31.48 assertions/s
Done.

I'm also using the ruby_gntp gem, but guard only sends startmessages to growl, never any test results: Test::Unit successfully started. Plus whether or not it's related, I don't see any colorization of output as suggested by the test_runner.

guard-spork (0.5.2)
  guard (>= 0.10.0)
  spork (>= 0.8.4)
guard-test (0.4.3)
  guard (>= 0.4)
  test-unit (~> 2.2)
rymai commented 12 years ago

Hey David,

thanks for the report, unfortunately I don't have enough time these days to take a look at this, but I'll try not next week (I'm on vacation) but the week after that (5th March)...

Feel free to investigate and submit a pull-request if you find a fix.

rymai commented 12 years ago

Hi David, do you still have this issue? If yes, could you provide your full Gemfile.lock + Guardfile?

Thanks in advance!

jpynn commented 11 years ago

I can confirm at least the notification part. I only get the spork server start message notification. nothing after that

bratsche commented 11 years ago

I get this Drb::DrbUnknown message, and the 0% passing message. However, when my tests fail it's definitely telling me, so I'm not sure if this is really that big of a deal.

Since @rymai asked for a Guardfile and Gemfile.lock, I'll post mine:

guard 'spork', :wait => 60, :test_unit_env => { 'RAILS_ENV' => 'test' } do
  watch('config/application.rb')
  watch('config/environment.rb')
  watch(%r{^config/environments/.+\.rb$})
  watch(%r{^config/initializers/.+\.rb$})
  watch('Gemfile')
  watch('test/test_helper.rb') { :test_unit }
end

guard :test, :drb => true do
  watch(%r{^test/.+_test\.rb$})
  watch(%r{^lib/(.+)\.rb$})                          { "test/#{m[1]}_test.rb" }
  watch(%r{^app/models/(.+)\.rb$})                   { |m| "test/unit/#{m[1]}_test.rb" }
  watch(%r{^app/controllers/(.+)\.rb$})              { |m| "test/functional/#{m[1]}_test.rb" }
  watch(%r{^app/views/.+\.rb$})                      { "test/integration" }
  watch('app/controllers/application_controller.rb') { ["test/functional", "test/integration"] }
end
GIT
  remote: git://github.com/bratsche/foundation.git
  revision: fdb809a0c488f5d5574a11fd91c4dd5e42031651
  specs:
    zurb-foundation (3.1.1)
      compass (>= 0.12.2)
      modular-scale (>= 1.0.2)
      rake
      sass (>= 3.2.0)

GIT
  remote: git://github.com/guiloyins/rails3-jquery-autocomplete.git
  revision: f206dc448b98ed0063473fa96cfe005d518b5e25
  specs:
    rails3-jquery-autocomplete (1.0.6)
      rails (~> 3.0)

GIT
  remote: git://github.com/stefants/negative-captcha.git
  revision: dc0c1bbde675066ad99e7c701aaac82d789ccf37
  specs:
    negative-captcha (0.1.0)

GIT
  remote: https://github.com/bernat/best_in_place.git
  revision: 745bc074defc22aae9136d2c91d066e7670a5380
  specs:
    best_in_place (1.0.6)
      jquery-rails
      rails (~> 3.1)

GIT
  remote: https://github.com/deefour/geokit-rails3.git
  revision: edfefe961ad64b2fe37cbb4bf19f284943b5a51d
  specs:
    geokit-rails3 (0.1.3)
      geokit (~> 1.5.0)
      rails (>= 3.1.0)

GIT
  remote: https://github.com/nov/fb_graph.git
  revision: e98db42268c1edb8b50c3e7b38e26fd1d1234029
  specs:
    fb_graph (2.2.1)
      httpclient (>= 2.2.0.2)
      rack-oauth2 (>= 0.9.4)

GIT
  remote: https://github.com/nov/restclient_with_cert.git
  revision: 6736bb2c65454cdddda80b893b54789cb05801bc
  specs:
    restclient_with_cert (0.0.8)
      rest-client (>= 1.6)

GEM
  remote: http://rubygems.org/
  remote: http://gems.github.com/
  specs:
    RedCloth (4.2.9)
    actionmailer (3.2.8)
      actionpack (= 3.2.8)
      mail (~> 2.4.4)
    actionpack (3.2.8)
      activemodel (= 3.2.8)
      activesupport (= 3.2.8)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.4)
      rack (~> 1.4.0)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.1.3)
    activemodel (3.2.8)
      activesupport (= 3.2.8)
      builder (~> 3.0.0)
    activerecord (3.2.8)
      activemodel (= 3.2.8)
      activesupport (= 3.2.8)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activeresource (3.2.8)
      activemodel (= 3.2.8)
      activesupport (= 3.2.8)
    activesupport (3.2.8)
      i18n (~> 0.6)
      multi_json (~> 1.0)
    arel (3.0.2)
    attr_required (0.0.3)
    awesome_print (1.0.1)
    aws-s3 (0.6.2)
      builder
      mime-types
      xml-simple
    aws-ses (0.4.3)
      builder
      mail (> 2.2.5)
      mime-types
      xml-simple
    bcrypt-ruby (3.0.1)
    blankslate (2.1.2.4)
    builder (3.0.4)
    capistrano (2.9.0)
      highline
      net-scp (>= 1.0.0)
      net-sftp (>= 2.0.0)
      net-ssh (>= 2.0.14)
      net-ssh-gateway (>= 1.1.0)
    capybara (2.0.0)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      selenium-webdriver (~> 2.0)
      xpath (~> 1.0.0)
    childprocess (0.3.6)
      ffi (~> 1.0, >= 1.0.6)
    chronic_duration (0.9.6)
      numerizer (~> 0.1.1)
    chunky_png (1.2.6)
    cocaine (0.2.0)
    coderay (1.0.8)
    coffee-rails (3.2.2)
      coffee-script (>= 2.2.0)
      railties (~> 3.2.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.3.1)
    compass (0.12.2)
      chunky_png (~> 1.2)
      fssm (>= 0.2.7)
      sass (~> 3.1)
    compass-rails (1.0.3)
      compass (>= 0.12.2, < 0.14)
    daemons (1.1.9)
    dynamic_form (1.1.4)
    eco (1.0.0)
      coffee-script
      eco-source
      execjs
    eco-source (1.1.0.rc.1)
    erubis (2.7.0)
    eventmachine (1.0.0)
    execjs (1.2.9)
      multi_json (~> 1.0)
    faraday (0.8.1)
      multipart-post (~> 1.1)
    ffi (1.1.5)
    foreman (0.60.2)
      thor (>= 0.13.6)
    fssm (0.2.9)
    geokit (1.5.0)
    guard (1.5.4)
      listen (>= 0.4.2)
      lumberjack (>= 1.0.2)
      pry (>= 0.9.10)
      thor (>= 0.14.6)
    guard-bundler (1.0.0)
      bundler (~> 1.0)
      guard (~> 1.1)
    guard-spork (1.2.3)
      childprocess (>= 0.2.3)
      guard (>= 1.1)
      spork (>= 0.8.4)
      sys-proctable
    guard-test (0.7.0)
      guard (>= 1.1)
      test-unit (~> 2.2)
    highline (1.6.9)
    hike (1.2.1)
    httpclient (2.2.3)
    i18n (0.6.1)
    jcrop-rails (1.0.2)
      railties (~> 3.0)
      thor (~> 0.14)
    journey (1.0.4)
    jquery-rails (1.0.17)
      railties (~> 3.0)
      thor (~> 0.14)
    json (1.7.5)
    kaminari (0.13.0)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
      railties (>= 3.0.0)
    kgio (2.6.0)
    libv8 (3.3.10.4)
    libwebsocket (0.1.6)
      websocket
    listen (0.5.3)
    lumberjack (1.0.2)
    mail (2.4.4)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mail_extract (0.1.4)
    method_source (0.8.1)
    mime-types (1.19)
    modular-scale (1.0.2)
      compass (>= 0.11.5)
      sassy-math (>= 1.2)
    multi_json (1.3.6)
    multipart-post (1.1.5)
    mysql2 (0.3.10)
    net-scp (1.0.4)
      net-ssh (>= 1.99.1)
    net-sftp (2.0.5)
      net-ssh (>= 2.0.9)
    net-ssh (2.2.1)
    net-ssh-gateway (1.1.0)
      net-ssh (>= 1.99.1)
    nokogiri (1.5.2)
    numerizer (0.1.1)
    oauth (0.4.6)
    paper_trail (2.6.0)
      rails (~> 3)
    paperclip (2.4.5)
      activerecord (>= 2.3.0)
      activesupport (>= 2.3.2)
      cocaine (>= 0.0.2)
      mime-types
    parslet (1.2.3)
      blankslate (~> 2.0)
    polyglot (0.3.3)
    pony (1.3)
      mail (> 2.0)
    pry (0.9.10)
      coderay (~> 1.0.5)
      method_source (~> 0.8)
      slop (~> 3.3.1)
    rack (1.4.1)
    rack-cache (1.2)
      rack (>= 0.4)
    rack-oauth2 (0.11.0)
      activesupport (>= 2.3)
      attr_required (>= 0.0.3)
      httpclient (>= 2.2.0.2)
      i18n
      json (>= 1.4.3)
      rack (>= 1.1)
    rack-protection (1.2.0)
      rack
    rack-ssl (1.3.2)
      rack
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (3.2.8)
      actionmailer (= 3.2.8)
      actionpack (= 3.2.8)
      activerecord (= 3.2.8)
      activeresource (= 3.2.8)
      activesupport (= 3.2.8)
      bundler (~> 1.0)
      railties (= 3.2.8)
    railties (3.2.8)
      actionpack (= 3.2.8)
      activesupport (= 3.2.8)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (>= 0.14.6, < 2.0)
    raindrops (0.8.0)
    rake (0.9.2.2)
    rb-fchange (0.0.6)
      ffi
    rb-fsevent (0.9.2)
    rb-inotify (0.8.8)
      ffi (>= 0.5.0)
    rdoc (3.12)
      json (~> 1.4)
    redis (2.2.2)
    redis-namespace (1.0.3)
      redis (< 3.0.0)
    resque (1.20.0)
      multi_json (~> 1.0)
      redis-namespace (~> 1.0.2)
      sinatra (>= 0.9.2)
      vegas (~> 0.1.2)
    resque_mailer (2.0.3)
      actionmailer (>= 3.0.0)
      resque (>= 1.2.3)
    rest-client (1.6.7)
      mime-types (>= 1.16)
    rollout (1.1.0)
    ruby-prof (0.11.2)
    rubyzip (0.9.9)
    rvm-capistrano (1.2.5)
      capistrano (>= 2.0.0)
    sass (3.2.2)
    sass-rails (3.2.5)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    sassy-math (1.2)
      compass (~> 0.11)
    selenium-webdriver (2.26.0)
      childprocess (>= 0.2.5)
      libwebsocket (~> 0.1.3)
      multi_json (~> 1.0)
      rubyzip
    simple_oauth (0.1.8)
    sinatra (1.3.2)
      rack (~> 1.3, >= 1.3.6)
      rack-protection (~> 1.2)
      tilt (~> 1.3, >= 1.3.3)
    slop (3.3.3)
    sms_fu (1.1.2)
    spork (0.9.2)
    spork-testunit (0.0.8)
      spork (>= 0.6.0)
    sprockets (2.1.3)
      hike (~> 1.2)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sys-proctable (0.9.2)
    test-unit (2.5.2)
    therubyracer (0.9.9)
      libv8 (~> 3.3.10)
    thin (1.5.0)
      daemons (>= 1.0.9)
      eventmachine (>= 0.12.6)
      rack (>= 1.0.0)
    thor (0.16.0)
    tilt (1.3.3)
    treetop (1.4.11)
      polyglot
      polyglot (>= 0.3.1)
    turbolinks (0.3.3)
    tweet-button (0.1.0)
    twitter (3.0.2)
      faraday (~> 0.8)
      multi_json (~> 1.3)
      simple_oauth (~> 0.1.6)
    tzinfo (0.3.33)
    uglifier (1.0.4)
      execjs (>= 0.3.0)
      multi_json (>= 1.0.2)
    unicorn (4.1.1)
      kgio (~> 2.4)
      rack
      raindrops (~> 0.6)
    vegas (0.1.11)
      rack (>= 1.0.0)
    websocket (1.0.2)
    xml-simple (1.1.1)
    xpath (1.0.0)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  RedCloth (~> 4.2.9)
  awesome_print
  aws-s3
  aws-ses (~> 0.4.3)
  bcrypt-ruby
  best_in_place!
  capistrano (~> 2.9.0)
  capybara
  chronic_duration
  coffee-rails (~> 3.2.1)
  compass-rails
  dynamic_form
  eco
  fb_graph!
  foreman
  geokit
  geokit-rails3!
  guard-bundler
  guard-spork
  guard-test
  jcrop-rails
  jquery-rails
  json
  kaminari (~> 0.13.0)
  mail_extract
  mysql2
  negative-captcha!
  nokogiri
  oauth
  paper_trail (~> 2)
  paperclip
  parslet
  pony
  rails (= 3.2.8)
  rails3-jquery-autocomplete!
  rb-fchange
  rb-fsevent
  rb-inotify
  redis
  resque_mailer
  restclient_with_cert!
  rollout
  ruby-prof
  rvm-capistrano
  sass (>= 3.2.0)
  sass-rails (~> 3.2.5)
  sms_fu
  spork
  spork-testunit
  therubyracer
  thin
  turbolinks
  tweet-button
  twitter
  uglifier (>= 1.0.3)
  unicorn
  zurb-foundation!
rymai commented 11 years ago

Sorry guys, I'm not actually using my own gem so I don't really have any incentive fixing this...

If you experience this issue, please investigate yourself. Of course I'm still available if you have questions about the gem's code.

rymai commented 11 years ago

Closing this for now due to the lack of activity. Feel free to re-open or open a pull-request with a fix (even better)!