Skip to content

Commit

Permalink
Auto-run API tests via guard
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Jan 31, 2017
1 parent 8d07d94 commit c7a8243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ guard :minitest, :spring => true do
watch(%r{^app/workers/(.+)\.rb$}) { |m| "test/unit/workers/#{m[1]}_test.rb" }
watch(%r{^lib/(.+)\.rb$}) { |m| "test/unit/lib/#{m[1]}_test.rb" }
watch(%r{^lib/tasks/(.+)\.rake$}) { |m| "test/unit/lib/tasks/#{m[1]}_test.rb" }
watch(%r{^app/serializers/api/([^/]+)}) { |m| "test/integration/api/#{m[1]}" }
watch(%r{^test/.+_test\.rb$})
watch(%r{^test/test_helper\.rb$}) { "test" }
watch(%r{^test/support/.+\.rb}) { "test" }
watch(%r{^test/support/schemas/([^/]+)}) { |m| "test/integration/api/#{m[1]}" }
end

0 comments on commit c7a8243

Please sign in to comment.