Class: TestCalabash

Inherits:
BaseCommand show all
Defined in:
lib/commands/test_calabash.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#all_commands, #empty?, #initialize, #log_file

Constructor Details

This class inherits a constructor from BaseCommand

Instance Method Details

#after_commandObject



13
14
15
# File 'lib/commands/test_calabash.rb', line 13

def after_command
  "! grep -q \"failed\" #{log_file} && grep -q \"passed\" #{log_file}"
end

#before_commandObject

overrides from base class



6
7
# File 'lib/commands/test_calabash.rb', line 6

def before_command
end

#main_commandObject



9
10
11
# File 'lib/commands/test_calabash.rb', line 9

def main_command
  "cd #{@params.source_root} && APP_BUNDLE_PATH='#{app_path}' #{test_command} -o #{log_file} --require features"
end