<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,10 +17,28 @@ class Autotest::Sqlserver &lt; Autotest
       &quot;../../../rails/activerecord/test/&quot;
     ].join(File::PATH_SEPARATOR)
     
-    self.add_mapping %r%^test/.*/.*_test_sqlserver.rb$% do |filename, _|
+    @test_sqlserver_file_match = %r%^test/cases/.*_test_sqlserver\.rb$%
+    
+    add_exception %r%^\./(?:autotest)%
+    add_exception %r%^\./(.*LICENSE|debug.log|README.*|CHANGELOG.*)$%i
+    
+    # Any *_test_sqlserver file saved runs that file
+    self.add_mapping @test_sqlserver_file_match do |filename, matchs|
       filename
     end
     
+    # If any the adapter changes
+    # the test directory, ofcourse having _test.rb at the end, will run that test. 
+    self.add_mapping(%r%^lib/(.*)\.rb$%) do |filename, matchs|
+      files_matching @test_sqlserver_file_match
+    end
+    
+    # If any core file like the test helper, connections, fixtures, migratinos,
+    # and other support files, then run all matching *_test_sqlserver files.
+    add_mapping %r%^test/(cases/(sqlserver_helper)\.rb|connections|fixtures|migrations|schema/.*)% do
+      files_matching @test_sqlserver_file_match
+    end
+    
   end
   
   # Have to use a custom reorder method since the normal :alpha for Autotest would put the </diff>
      <filename>autotest/sqlserver.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>26275a963675e5d4d8f2bee2c49e733026c5759a</id>
    </parent>
  </parents>
  <author>
    <name>Ken Collins</name>
    <email>ken@metaskills.net</email>
  </author>
  <url>http://github.com/rails-sqlserver/2000-2005-adapter/commit/67f41245abc20cf42b36cade32d7e4b1fc2fd356</url>
  <id>67f41245abc20cf42b36cade32d7e4b1fc2fd356</id>
  <committed-date>2008-10-24T19:36:03-07:00</committed-date>
  <authored-date>2008-10-24T19:36:03-07:00</authored-date>
  <message>Autotest is now smart enought to run all tests when cetain files change.</message>
  <tree>668b3b927a127f4fb06c73cd6c539a9ce7a481b5</tree>
  <committer>
    <name>Ken Collins</name>
    <email>ken@metaskills.net</email>
  </committer>
</commit>
