mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
4e1c209d17
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
19 lines
698 B
Ruby
19 lines
698 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::ReporterV1 do
|
|
let(:reporter) do
|
|
data = JSON.parse(File.read("test/fixtures/reporters/run_data.json"),
|
|
symbolize_names: true)
|
|
InspecPlugins::JUnitReporter::ReporterV1.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
|