Skip to content

Commit

Permalink
Don't run slow tests with Guard
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Mar 12, 2013
1 parent 6850f65 commit b75b4d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Guardfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# More info at https://github.com/guard/guard#readme

guard 'rspec' do
guard 'rspec', cli: '--tag ~speed:slow' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^lib/(.+)/(.+)\.rb$}) { |m| "spec/#{m[1]}/#{m[2]}_spec.rb" }
Expand Down
2 changes: 1 addition & 1 deletion spec/bashcov/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Bashcov::Runner.new('ls -l').run.should be_success
end

it "is fast" do
it "is fast", speed: :slow do
# XXX it's usually 2 to 3 times slower but can be up to 6 on Travis boxes
# - not sure why :(
ratio = 0
Expand Down

0 comments on commit b75b4d0

Please sign in to comment.