Stan Kaufman
2012-Jan-11 18:21 UTC
spork/guard/rspec now disregarding filter tags for examples
Something in the latest iteration of spork, guard, or rspec now causes all examples to be run, not just tagged examples (say, with :focus => true). This was posted as an issue for rspec: https://github.com/dchelimsky/rspec/issues/47 But when running the same command that guard generates in verbose mode: DEBUG (09:48:16): Command execution: bundle exec rspec --drb -f progress -r /Users/skaufman/.rvm/gems/ruby-1.9.3-p0@ee_core/gems/guard- rspec-0.6.0/lib/guard/rspec/formatters/notification_rspec.rb -f Guard::RSpec::Formatter::NotificationRSpec --out /dev/null --failure- exit-code 2 spec directly on the command line: $ bundle exec rspec --drb -f progress -r /Users/skaufman/.rvm/gems/ ruby-1.9.3-p0@ee_core/gems/guard-rspec-0.6.0/lib/guard/rspec/ formatters/notification_rspec.rb -f Guard::RSpec::Formatter::NotificationRSpec --out /dev/null --failure- exit-code 2 spec rspec does limit the run to tagged examples. So this doesn''t appear to be an rspec issue per se. I''ve tried to poke in the guts of spork and guard looking for clues, but I''m clueless. Any ideas about which gem is at fault so that an issue can be filed in the right place at github and asked in the right Google group? Here''s the configuration where this behavior occurs (with Rails 3.1.3): guard (0.10.0) guard-rspec (0.6.0) spork (0.9.0.rc9) guard-spork (0.5.1) rspec-core (2.8.0) rspec-expectations (2.8.0) rspec-mocks (2.8.0) rspec (2.8.0) rspec-rails (2.8.1) TIA. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Stan Kaufman
2012-Jan-11 20:46 UTC
Re: spork/guard/rspec now disregarding filter tags for examples
On Jan 11, 10:21 am, Stan Kaufman <stan.kauf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Something in the latest iteration of spork, guard, or rspec now causes > all examples to be run, not just tagged examples (say, with :focus => > true).Hmm...looks like this is a spork vs rspec problem; the behavior occurs without involving guard: - rspec run alone limits test execution to examples tagged with :focus - rspec run within spork ignores the :focus tag and runs all examples It appears that the last update to spork was last November, whereas rspec was updated a few days ago. So whatever is going on isn''t due to a new change in spork but rather a new spork incompatibility with rspec that presumably will need a fix in spork. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Stan Kaufman
2012-Jan-13 15:15 UTC
Re: spork/guard/rspec now disregarding filter tags for examples
On Jan 11, 12:46 pm, Stan Kaufman <stan.kauf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hmm...looks like this is a spork vs rspec problem; the behavior occurs > without involving guard:Turns out that this is an rspec 2.8.x issue. See the discussion here: https://github.com/sporkrb/spork/issues/166 The simple workaround is to add --tag focus to your .rspec file, and filtering on :focus tags once again works properly -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.