lib/inspec/cli.rb in inspec-0.25.0 vs lib/inspec/cli.rb in inspec-0.26.0

- old
+ new

@@ -7,10 +7,11 @@ require 'thor' require 'json' require 'pp' require 'utils/base_cli' require 'utils/json_log' +require 'inspec/runner_mock' class Inspec::InspecCLI < Inspec::BaseCLI # rubocop:disable Metrics/ClassLength class_option :diagnose, type: :boolean, desc: 'Show diagnostics (versions, configurations)' @@ -158,10 +159,10 @@ end private def run_command(opts) - opts[:test_collector] = 'mock' + opts[:test_collector] = Inspec::RunnerMock.new runner = Inspec::Runner.new(opts) runner.create_context.load(opts[:command]) end end