Class: Busser::Command::Test

Inherits:
Thor::BaseGroup show all
Defined in:
lib/busser/command/test.rb

Overview

Test command.

Author:

Instance Method Summary collapse

Methods included from UI

banner, die, fatal, handle_command, info, run!, run_ruby_script!, status, warn

Methods included from Helpers

chef_apply, install_gem, root_path, suite_path, vendor_path

Instance Method Details

#performObject



34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/busser/command/test.rb', line 34

def perform
  Busser::Plugin.runner_plugins(plugins).each do |runner_path|
    runner = File.basename(runner_path)
    next if skip_runner?(runner)
    klass = ::Thor::Util.camel_case(runner)

    banner "Running #{runner} test suite"
    Busser::Plugin.require!(runner_path)
    prepare_suite(runner)
    invoke Busser::Plugin.runner_class(klass)
  end
end