Class: Guard::Minitest

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/minitest.rb,
lib/guard/minitest/runner.rb,
lib/guard/minitest/inspector.rb

Defined Under Namespace

Modules: Inspector Classes: Runner

Instance Method Summary collapse

Constructor Details

#initialize(watchers = [], options = {}) ⇒ Minitest

Returns a new instance of Minitest.



11
12
13
14
15
# File 'lib/guard/minitest.rb', line 11

def initialize(watchers = [], options = {})
  super

  @runner ||= Runner.new(options)
end

Instance Method Details

#reloadObject



25
26
27
# File 'lib/guard/minitest.rb', line 25

def reload
  true
end

#run_allObject



29
30
31
32
33
# File 'lib/guard/minitest.rb', line 29

def run_all
  paths = Inspector.clean(@runner.all)
  return @runner.run(paths, :message => 'Running all tests') unless paths.empty?
  true
end

#run_on_change(paths = []) ⇒ Object



35
36
37
38
39
# File 'lib/guard/minitest.rb', line 35

def run_on_change(paths = [])
  paths = Inspector.clean(paths)
  return @runner.run(paths) unless paths.empty?
  true
end

#startObject



17
18
19
# File 'lib/guard/minitest.rb', line 17

def start
  true
end

#stopObject



21
22
23
# File 'lib/guard/minitest.rb', line 21

def stop
  true
end