Module: Retest

Defined in:
lib/retest.rb,
lib/retest/setup.rb,
lib/retest/prompt.rb,
lib/retest/runner.rb,
lib/retest/sounds.rb,
lib/retest/command.rb,
lib/retest/options.rb,
lib/retest/program.rb,
lib/retest/version.rb,
lib/retest/watcher.rb,
lib/retest/repository.rb,
lib/retest/file_system.rb,
lib/retest/command/base.rb,
lib/retest/command/rake.rb,
lib/retest/command/ruby.rb,
lib/retest/command/rails.rb,
lib/retest/command/rspec.rb,
lib/retest/version_control.rb,
lib/retest/matching_options.rb,
lib/retest/command/hardcoded.rb,
lib/retest/version_control/git.rb,
lib/retest/matching_options/path.rb,
lib/retest/runner/cached_test_file.rb,
lib/retest/version_control/no_version_control.rb

Defined Under Namespace

Modules: CachedTestFile, FileSystem, Sounds, VersionControl, Watcher Classes: Command, Error, FileNotFound, MatchingOptions, Options, Program, Prompt, Repository, Runner, Setup

Constant Summary collapse

VERSION =
"2.0.0"

Class Method Summary collapse

Class Method Details

.listen(options, listener: Watcher::Default) ⇒ Object



26
27
28
29
30
# File 'lib/retest.rb', line 26

def self.listen(options, listener: Watcher::Default)
  listener.watch(dir: '.', extensions: options.extensions, polling: options.force_polling?) do |modified, added, removed|
    yield modified, added, removed
  end
end