class Kitchen::Command::Test
Command
to test one or more instances.
@author Fletcher Nichol <fnichol@nichol.ca>
Public Instance Methods
call()
click to toggle source
Invoke the command.
# File lib/kitchen/command/test.rb, line 31 def call unless %w{passing always never}.include?(options[:destroy]) raise ArgumentError, "Destroy mode must be passing, always, or never." end banner "Starting Test Kitchen (v#{Kitchen::VERSION})" elapsed = Benchmark.measure do destroy_mode = options[:destroy].to_sym results = parse_subcommand(args.join("|")) run_action(:test, results, destroy_mode) end banner "Test Kitchen is finished. #{Util.duration(elapsed.real)}" end