class Pione::TestHelper::PioneClientRunner

Public Class Methods

test(context, &b) click to toggle source
# File lib/pione/test-helper/command-helper.rb, line 11
def self.test(context, &b)
  # with client mode
  new(context: context).tap do |runner|
    runner.default_arguments = ["--base", runner.base.path.to_s]
    b.call(runner)
  end
end

Public Instance Methods

fail() click to toggle source
# File lib/pione/test-helper/command-helper.rb, line 28
def fail
  _args = args
  context.it(template % title) do
    Rootage::ScenarioTest.fail(Pione::Command::PioneClient, _args)
  end
end
run(&b) click to toggle source
# File lib/pione/test-helper/command-helper.rb, line 19
def run(&b)
  _args = args
  _base = base
  context.it(template % title) do
    Rootage::ScenarioTest.succeed(Pione::Command::PioneClient, _args)
    b.call(_base)
  end
end
timeout(sec) click to toggle source
# File lib/pione/test-helper/command-helper.rb, line 35
def timeout(sec)
  _args = args + ["--timeout", sec.to_s]
  context.it(template % title) do
    Rootage::ScenarioTest.fail(Pione::Command::PioneClient, _args)
  end
end