Class: Guard::Minitest
- Inherits:
-
Guard
- Object
- Guard
- Guard::Minitest
show all
- Defined in:
- lib/guard/minitest.rb,
lib/guard/minitest/runner.rb,
lib/guard/minitest/inspector.rb
Defined Under Namespace
Classes: Inspector, Runner
Instance Method Summary
collapse
Constructor Details
#initialize(watchers = [], options = {}) ⇒ Minitest
Returns a new instance of Minitest.
11
12
13
14
15
16
|
# File 'lib/guard/minitest.rb', line 11
def initialize(watchers = [], options = {})
super
@runner = Runner.new(options)
@inspector = Inspector.new(@runner.test_folders, @runner.test_file_patterns)
end
|
Instance Method Details
#reload ⇒ Object
26
27
28
|
# File 'lib/guard/minitest.rb', line 26
def reload
true
end
|
#run_all ⇒ Object
30
31
32
33
34
|
# File 'lib/guard/minitest.rb', line 30
def run_all
paths = @inspector.clean_all
return @runner.run(paths, :message => 'Running all tests') unless paths.empty?
true
end
|
#run_on_change(paths = []) ⇒ Object
36
37
38
39
40
|
# File 'lib/guard/minitest.rb', line 36
def run_on_change(paths = [])
paths = @inspector.clean(paths)
return @runner.run(paths) unless paths.empty?
true
end
|
#start ⇒ Object
18
19
20
|
# File 'lib/guard/minitest.rb', line 18
def start
true
end
|
#stop ⇒ Object
22
23
24
|
# File 'lib/guard/minitest.rb', line 22
def stop
true
end
|