Class: Kitchen::Command::Test
- Includes:
- RunAction
- Defined in:
- lib/kitchen/command/test.rb
Overview
Command to test one or more instances.
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods included from RunAction
#concurrency_setting, #report_errors, #run_action, #run_action_in_thread
Methods inherited from Base
Methods included from Logging
#banner, #debug, #error, #fatal, #info, #warn
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
Invoke the command.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/kitchen/command/test.rb', line 31 def call unless %w{passing always never}.include?([:destroy]) raise ArgumentError, "Destroy mode must be passing, always, or never." end "Starting Test Kitchen (v#{Kitchen::VERSION})" elapsed = Benchmark.measure do destroy_mode = [:destroy].to_sym results = parse_subcommand(args.join("|")) run_action(:test, results, destroy_mode) end "Test Kitchen is finished. #{Util.duration(elapsed.real)}" end |