Class: DeepCover::AutoRun::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/deep_cover/auto_run.rb

Instance Method Summary collapse

Constructor Details

#initialize(covered_path) ⇒ Runner

Returns a new instance of Runner.



8
9
10
11
# File 'lib/deep_cover/auto_run.rb', line 8

def initialize(covered_path)
  @covered_path = covered_path
  @saved = !(DeepCover.respond_to?(:running?) && DeepCover.running?)
end

Instance Method Details

#report!(**options) ⇒ Object



19
20
21
22
# File 'lib/deep_cover/auto_run.rb', line 19

def report!(**options)
  after_tests { puts report(**options) }
  self
end

#run!Object



13
14
15
16
17
# File 'lib/deep_cover/auto_run.rb', line 13

def run!
  after_tests { save }
  ExecCallbacks.before_exec { save }
  self
end