Sha256: 8d70c631122fda565a105fea4ccc0452b978923a40f7aa82e833d0d688c4a400

Contents?: true

Size: 1.14 KB

Versions: 17

Compression:

Stored size: 1.14 KB

Contents

Autotest.add_hook :initialize do |at|
  at.clear_mappings
  
  %W( coverage rdoc .git .svn pkg ).each do |exception|
    at.add_exception(exception)
  end
  
  at.add_mapping(%r%\Alib/geo_certs\.rb\Z%) { |filename, match|
    at.files_matching %r%test/(units|integrations)/geo_certs_test\.rb\Z%
  }
  
  at.add_mapping(%r%\Alib/geo_certs/(.*)\.rb\Z%) { |filename, match|
    at.files_matching %r%test/(units|integrations)/#{match[1]}_test\.rb\Z%
  }
  
  at.add_mapping(%r%\Atest/.*_test\.rb\Z%) { |filename, match|
    filename
  }
  
  ##
  # force a re-run of all tests for any of the following:
  # 
  at.add_mapping(%r%\Atest/factories\.rb\Z%) { |filename, match|
    at.files_matching %r%\Atest/(units|integrations)/.*_test\.rb\Z%
  }
  
  at.add_mapping(%r%\Atest/test_helper\.rb\Z%) { |filename, match|
    at.files_matching %r%\Atest/(units|integrations)/.*_test\.rb\Z%
  }
  
  at.add_mapping(%r%\Atest/fixtures/.*%) { |filename, match|
    at.files_matching %r%\Atest/(units|integrations)/.*_test\.rb\Z%
  }
  
  at.add_mapping(%r%\Atest/config/.*\.(yml|rb)\Z%) { |filename, match|
    at.files_matching %r%\Atest/(units|integrations)/.*_test\.rb\Z%
  }
  
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geocerts-1.0.1 autotest/discover.rb
geocerts-1.0.0 autotest/discover.rb
geocerts-0.0.25 autotest/discover.rb
geocerts-0.0.24 autotest/discover.rb
geocerts-0.0.23 autotest/discover.rb
geocerts-0.0.22 autotest/discover.rb
geocerts-0.0.21 autotest/discover.rb
geocerts-0.0.20 autotest/discover.rb
geocerts-0.0.19 autotest/discover.rb
geocerts-0.0.18 autotest/discover.rb
geocerts-0.0.17 autotest/discover.rb
geocerts-0.0.16 autotest/discover.rb
geocerts-0.0.15 autotest/discover.rb
geocerts-0.0.14 autotest/discover.rb
geocerts-0.0.13 autotest/discover.rb
geocerts-0.0.12 autotest/discover.rb
geocerts-0.0.11 autotest/discover.rb