Class: TestCalabash
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- TestCalabash
- Defined in:
- lib/commands/test_calabash.rb
Instance Method Summary collapse
- #after_command ⇒ Object
-
#before_command ⇒ Object
overrides from base class.
- #main_command ⇒ Object
Methods inherited from BaseCommand
#all_commands, #empty?, #initialize, #log_file
Constructor Details
This class inherits a constructor from BaseCommand
Instance Method Details
#after_command ⇒ Object
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_command ⇒ Object
overrides from base class
6 7 |
# File 'lib/commands/test_calabash.rb', line 6 def before_command end |
#main_command ⇒ Object
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 |