class CucumberStatistics::Renderer
Public Class Methods
render_combined_statistics(step_statistics, scenario_statistics, feature_statistics, overall_statistics)
click to toggle source
# File lib/cucumber_statistics/renderer.rb, line 12 def render_combined_statistics(step_statistics, scenario_statistics, feature_statistics, overall_statistics) template = Tilt::HamlTemplate.new(File.expand_path('../view/combined_statistics.html.haml', __FILE__)) rendered_content = template.render(RendererHelper.new, step_statistics: step_statistics, scenario_statistics: scenario_statistics, feature_statistics: feature_statistics, overall_statistics: overall_statistics) absolute_file_name = Configuration.result_combined_statistics File.open(absolute_file_name, 'w') do |f| f.write rendered_content end absolute_file_name end