Method: Inspec::Reporters::CLI#render

Defined in:
lib/inspec/reporters/cli.rb

#renderObject



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/inspec/reporters/cli.rb', line 43

def render
  run_data[:profiles].each do |profile|
    if profile[:status] == "skipped"
      platform = run_data[:platform]
      output("Skipping profile: '#{profile[:name]}' on unsupported platform: '#{platform[:name]}/#{platform[:release]}'.")
      next
    end
    @control_count = 0
    output("")
    print_profile_header(profile)
    print_standard_control_results(profile)
    print_anonymous_control_results(profile)
    if @control_count == 0
      output(format_message(
        indentation: 5,
        message: "No tests executed."
      ))
    end
  end

  output("")
  print_profile_summary
  print_tests_summary
end