Class: InspecPlugins::CliReporter::Reporter
- Inherits:
-
Object
- Object
- InspecPlugins::CliReporter::Reporter
show all
- Defined in:
- lib/plugins/inspec-reporter-cli/lib/inspec-reporter-cli/reporter.rb
Defined Under Namespace
Classes: ControlForCliDisplay
Constant Summary
collapse
- MULTI_TEST_CONTROL_SUMMARY_MAX_LEN =
60
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.run_data_schema_constraints ⇒ Object
46
47
48
|
# File 'lib/plugins/inspec-reporter-cli/lib/inspec-reporter-cli/reporter.rb', line 46
def self.run_data_schema_constraints
"~> 0.0"
end
|
Instance Method Details
#render ⇒ Object
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/plugins/inspec-reporter-cli/lib/inspec-reporter-cli/reporter.rb', line 50
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("")
(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
|