Module: Hypertest

Defined in:
lib/hypertest.rb

Class Method Summary collapse

Class Method Details

.run(ignore: %r{/(?:\.git|tmp)/}, debounce: 0.050, &block) ⇒ Object

ignore: pattern of directories to ignore events for debounce: number of seconds to drop successive event batches after

initiating a run

&block: run your tests!



9
10
11
12
13
# File 'lib/hypertest.rb', line 9

def run(ignore: %r{/(?:\.git|tmp)/}, debounce: 0.050, &block)
  q = Queue.new
  Thread.new { produce(q, ignore) }
  consume(q, debounce, &block)
end