Class: Guard::Codeception::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/codeception/runner.rb

Constant Summary collapse

CODECEPTION_FAILURES_EXIT_CODE =
1
CODECEPTION_ERRORS_EXIT_CODE =
2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Runner

Returns a new instance of Runner.



13
14
15
16
17
# File 'lib/guard/codeception/runner.rb', line 13

def initialize(options = {})
  @options  = options
  @parser   = Guard::Codeception::Parser.new
  @notifier = Guard::Codeception::Notifier.new
end

Instance Attribute Details

#notifierObject

Returns the value of attribute notifier.



8
9
10
# File 'lib/guard/codeception/runner.rb', line 8

def notifier
  @notifier
end

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/guard/codeception/runner.rb', line 8

def options
  @options
end

#parserObject

Returns the value of attribute parser.



8
9
10
# File 'lib/guard/codeception/runner.rb', line 8

def parser
  @parser
end

Instance Method Details

#runObject



19
20
21
# File 'lib/guard/codeception/runner.rb', line 19

def run
  _run if _codeception_exists?
end