Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
guard keeps running all specs.. ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
patrick99e99  
View profile  
 More options Apr 16 2012, 6:16 pm
From: patrick99e99 <patrick99...@gmail.com>
Date: Mon, 16 Apr 2012 15:16:35 -0700 (PDT)
Local: Mon, Apr 16 2012 6:16 pm
Subject: guard keeps running all specs.. ?
Hi,

It seems that after I launch guard, and it runs through all specs,
when I then edit a spec file, it will re-run all specs again instead
of just running the specs in that very file...

This is my guardfile:

  1 # A sample Guardfile
  2 # More info at https://github.com/guard/guard#readme
  3
  4 guard 'rspec', :version => 2 do
  5   watch(%r{^spec/.+_spec\.rb$})
  6   watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  7   watch('spec/spec_helper.rb')  { "spec" }
  8
  9   # Rails example
 10   watch(%r{^spec/.+_spec\.rb$})
 11   watch(%r{^app/(.+)\.rb$})                           { |m| "spec/
#{m[1]}_spec.rb" }
 12   watch(%r{^lib/(.+)\.rb$})                           { |m| "spec/
lib/#{m[1]}_spec.rb" }
 13   watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| ["spec/
routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}
 14   watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }
 15   watch('spec/spec_helper.rb')                        { "spec" }
 16   watch('config/routes.rb')                           { "spec/
routing" }
 17   watch('app/controllers/application_controller.rb')  { "spec/
controllers" }
 18   # Capybara request specs
 19   watch(%r{^app/views/(.+)/.*\.(erb|haml)$})          { |m| "spec/
requests/#{m[1]}_spec.rb" }
 20 end


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Kessler  
View profile  
 More options Apr 17 2012, 3:08 am
From: Michael Kessler <mi...@netzpiraten.ch>
Date: Tue, 17 Apr 2012 09:08:48 +0200
Local: Tues, Apr 17 2012 3:08 am
Subject: Re: guard keeps running all specs.. ?

You may have to adapt the Guard matchers to your project. I suggest to comment all and start reading them one by one and see which matcher causes the misbehavior.

On 17.04.2012, at 00:16, patrick99e99 wrote:

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nils Blum-Oeste  
View profile  
 More options Jan 7, 5:25 am
From: Nils Blum-Oeste <nblumoe...@googlemail.com>
Date: Mon, 7 Jan 2013 02:25:38 -0800 (PST)
Local: Mon, Jan 7 2013 5:25 am
Subject: Re: guard keeps running all specs.. ?

You may want to have a look at this parameter:

:all_after_pass => false     # run all specs after changed specs pass, default: true

https://github.com/guard/guard-rspec#list-of-available-options


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »