mirror of
https://github.com/inspec/inspec
synced 2024-12-18 17:14:33 +00:00
98ae89e6cc
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
19 lines
694 B
Ruby
19 lines
694 B
Ruby
require "helper"
|
|
require_relative "../../../lib/plugins/inspec-reporter-junit/lib/inspec-reporter-junit"
|
|
require_relative "../../../lib/plugins/inspec-reporter-junit/lib/inspec-reporter-junit/reporter"
|
|
|
|
describe InspecPlugins::JUnitReporter::Reporter do
|
|
let(:reporter) do
|
|
data = JSON.parse(File.read("test/fixtures/reporters/run_data.json"),
|
|
symbolize_names: true)
|
|
InspecPlugins::JUnitReporter::Reporter.new({ run_data: data })
|
|
end
|
|
|
|
describe "#render" do
|
|
it "confirm render output" do
|
|
junit_output = File.read("test/fixtures/reporters/junit_output")
|
|
reporter.render
|
|
_(reporter.rendered_output).must_equal junit_output
|
|
end
|
|
end
|
|
end
|