Sha256: 3b6bd64c874f89c59843785e4c4ffd4a67c65ca2ff8f07f45a613a450e2ecbe8
Contents?: true
Size: 625 Bytes
Versions: 5
Compression:
Stored size: 625 Bytes
Contents
module SpecTracker module Reporter class ReportMapper def map(scenarios:, test_results:, topic:) report_data = scenarios.map do |scenario| test_result = test_results.detect {|test_result| test_result.scenario_id == scenario.id} if test_result test_status = test_result.status else test_status = TestStatus.new test_status.missing! end ReportDatum.new(scenario_id: scenario.id, scenario_name: scenario.name, status: test_status) end Report.new(data: report_data, topic: topic) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems