Sha256: 4a0fa8b8b7641cdb38b317a9138067a08483c840c5af1db9d28bda29bf80ee77

Contents?: true

Size: 711 Bytes

Versions: 32

Compression:

Stored size: 711 Bytes

Contents

#!/usr/bin/env ruby
Autotest.add_hook :initialize do |autotest|
  %w{.git .DS_Store Gemfile bin doc html}.each do |exception|
    autotest.add_exception(exception)
  end
  autotest.clear_mappings
  autotest.add_mapping(/^test.*\/.*_test\.rb$/) { |filename, _| filename }
  autotest.add_mapping(/test_helper.rb/) { |f, _| autotest.files_matching(/test\/.*_test\.rb$/) }
  autotest.add_mapping(/^lib\/vanity\/(.*)\.rb/) do |filename, _|
    file = File.basename(filename, '.rb')
    dir = File.split(File.dirname(filename)).last
    autotest.files_matching %r%^test/(#{file}|#{dir})_test.rb$%
  end
end


# Don't run entire test suite when going from red to green
class Autotest
  def tainted
    false
  end
end

Version data entries

32 entries across 32 versions & 4 rubygems

Version Path
vanity-2.2.0 .autotest
vanity-2.1.2 .autotest
vanity-2.1.1 .autotest
vanity-2.1.0 .autotest
vanity-2.0.1 .autotest
vanity-2.0.0 .autotest
vanity-2.0.0.beta9 .autotest
vanity-1.9.3 .autotest
vanity-1.9.2 .autotest
vanity-2.0.0.beta8 .autotest
vanity-1.8.4 .autotest
vanity-2.0.0.beta7 .autotest
vanity-2.0.0.beta6 .autotest
vanity-2.0.0.beta5 .autotest
vanity-2.0.0.beta4 .autotest
vanity-2.0.0.beta3 .autotest
vanity-2.0.0.beta2 .autotest
vanity-2.0.0.beta .autotest
vanity-1.9.1 .autotest
vanity-1.9.0 .autotest