Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rspec --drb print summary twice #130

Open
heberuriegas opened this issue Dec 11, 2014 · 1 comment
Open

rspec --drb print summary twice #130

heberuriegas opened this issue Dec 11, 2014 · 1 comment

Comments

@heberuriegas
Copy link

I have been working with guard and is great, but always when I run rspec --drb in guard with spork I have the result printed twice. I'm not sure if the error is in this gem, I decide post here because the error is fixed if I remove "--drb".

Gems version:

heber@heber:~/workspaces/personal/datanovo$ gem list | grep "guard\|rspec\|spork"
guard (2.10.2)
guard-compat (0.3.0)
guard-livereload (2.4.0)
guard-rails (0.7.0)
guard-rspec (4.4.2)
guard-spork (2.0.2)
rspec (2.99.0)
rspec-collection_matchers (1.1.2)
rspec-core (2.99.2)
rspec-expectations (2.99.2)
rspec-mocks (2.99.2)
rspec-rails (2.99.0)
spork (1.0.0rc4)
spork-rails (4.0.0)

Result:

[1] guard(main)> 
16:59:06 - INFO - Run all
16:59:06 - INFO - Running all specs
Running tests with args ["--color", "--failure-exit-code", "2", "--format", "documentation", "--format", "Guard::RSpecFormatter", "--require", "/home/heber/.rvm/gems/ruby-2.1.2@datanovo/gems/guard-rspec-4.4.2/lib/guard/rspec_formatter.rb", "spec"]...
Run options:
  include {:focus=>true}
  exclude {:slow=>true}
Run options:
  include {:focus=>true}
  exclude {:slow=>true}

All examples were filtered out; ignoring {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

Guardfile:

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'spork', :rspec_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.lock')
  watch('spec/spec_helper.rb') { :rspec }
  watch('test/test_helper.rb') { :test_unit }
  watch(%r{features/support/}) { :cucumber }
end

guard :rspec, cmd: 'rspec --drb' do
  watch('spec/spec_helper.rb')                        { "spec" }
  watch('config/routes.rb')                           { "spec/routing" }
  watch('app/controllers/application_controller.rb')  { "spec/controllers" }
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$})          { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^lib/(.+)\.rb$})                           { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
end

guard 'livereload' do
  watch(%r{app/views/.+\.(erb|haml|slim)$})
  watch(%r{app/helpers/.+\.rb})
  watch(%r{public/.+\.(css|js|html)})
  watch(%r{config/locales/.+\.yml})
  # Rails Assets Pipeline
  watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html))).*}) { |m| "/assets/#{m[3]}" }
end

.rspec File

--color
--format documentation

Thanks for your time, warmest regards.

@heberuriegas heberuriegas changed the title Rspec run print summary twice rspec --drb run print summary twice Dec 11, 2014
@heberuriegas heberuriegas changed the title rspec --drb run print summary twice rspec --drb print summary twice Dec 11, 2014
@jesseproudman
Copy link

Did you ever come to resolution on double printing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants