class Object
Public Instance Methods
run(state, cmd: nil, wait: true, args: [])
click to toggle source
# File lib/baf/testing/cucumber/steps/execution.rb, line 1 def run state, cmd: nil, wait: true, args: [] cmd ||= state[:program] Baf::Testing.run cmd + args, wait: wait, env_allow: state.fetch(:env_allow) { [] }, timeout: state[:exec_timeout] end
wait_output(pattern, output: -> { $_baf[:process].output)
click to toggle source
# File lib/baf/testing/cucumber/steps/output_wait.rb, line 1 def wait_output pattern, output: -> { $_baf[:process].output }, times: 1 Baf::Testing.wait_output pattern, stream: output, times: times end