Class: Guard::SporkMinitest
- Inherits:
-
Guard
- Object
- Guard
- Guard::SporkMinitest
show all
- Defined in:
- lib/guard/sporkminitest.rb,
lib/guard/sporkminitest/runner.rb,
lib/guard/sporkminitest/inspector.rb
Defined Under Namespace
Classes: Inspector, Runner
Constant Summary
collapse
- VERSION =
'0.0.2'
Constants included
from Guard
SporkMinitestVERSION
Instance Method Summary
collapse
Constructor Details
#initialize(watchers = [], options = {}) ⇒ SporkMinitest
Returns a new instance of SporkMinitest.
12
13
14
15
16
17
|
# File 'lib/guard/sporkminitest.rb', line 12
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
21
|
# File 'lib/guard/sporkminitest.rb', line 21
def reload; true end
|
#run_all ⇒ Object
23
24
25
26
27
|
# File 'lib/guard/sporkminitest.rb', line 23
def run_all
paths = @inspector.clean_all
return @runner.run(paths, :message => 'Running all tests') unless paths.empty?
true
end
|
#run_on_changes(paths = []) ⇒ Object
29
30
31
32
33
|
# File 'lib/guard/sporkminitest.rb', line 29
def run_on_changes(paths = [])
paths = @inspector.clean(paths)
return @runner.run(paths) unless paths.empty?
true
end
|
#start ⇒ Object
19
|
# File 'lib/guard/sporkminitest.rb', line 19
def start; true end
|
#stop ⇒ Object
20
|
# File 'lib/guard/sporkminitest.rb', line 20
def stop; true end
|