Skip to content
Browse files

Updated autotest configuration to match new spec layout

  • Loading branch information...
1 parent c72ab13 commit 8a8d0196cd6e2e040dd8364c77c9fff9bdbdb582 Dan Kubb committed Oct 12, 2008
Showing with 8 additions and 10 deletions.
  1. +8 −10 .autotest
View
18 .autotest
@@ -1,26 +1,24 @@
Autotest.add_hook :initialize do |at|
ignore = %w[ .git burn www log plugins script tasks bin CHANGELOG FAQ MIT-LICENSE PERFORMANCE QUICKLINKS README ]
- unless ENV['AUTOTEST'] == 'integration'
- ignore << 'spec/integration'
- end
-
ignore.each do |exception|
at.add_exception(exception)
end
at.clear_mappings
- at.add_mapping(%r{^spec/.+_spec\.rb$}) do |filename,_|
+ # when a spec is updated, make sure it passes
+ at.add_mapping %r{\Aspec/(.+)_spec\.rb\z} do |filename,_|
filename
end
- at.add_mapping(%r{^lib/data_mapper/(.+)\.rb$}) do |_,match|
- [ "spec/unit/#{match[1]}_spec.rb" ] +
- at.files_matching(%r{^spec/integration/.+_spec\.rb$})
+ # when a file is updated, make sure it's associated public and semipublic specs pass
+ at.add_mapping %r{\Alib/dm\-core/(.+)\.rb\z} do |_,match|
+ at.files_matching %r{\Aspec/(?:semi)?public/#{match[1]}_spec\.rb\z}
end
- at.add_mapping(%r{^spec/spec_helper\.rb$}) do
- at.files_matching(%r{^spec/.+_spec\.rb$})
+ # when the spec configuration changes make sure all specs pass
+ at.add_mapping %r{\Aspec/spec_helper\.rb\z} do
+ at.files_matching %r{\Aspec/.+_spec\.rb\z}
end
end

0 comments on commit 8a8d019

Please sign in to comment.
Something went wrong with that request. Please try again.