def print_stats(features)
@failures = step_mother.scenarios(:failed).select { |s| s.is_a?(Cucumber::Ast::Scenario) }
if !@failures.empty?
@io.puts format_string("Failing Scenarios:", :failed)
@failures.each do |failure|
@io.puts format_string("cucumber " + failure.file_colon_line, :failed) +
format_string(" # Scenario: " + failure.name, :comment)
end
@io.puts
end
@io.print dump_count(step_mother.scenarios.length, "scenario")
print_status_counts{|status| step_mother.scenarios(status)}
@io.print dump_count(step_mother.steps.length, "step")
print_status_counts{|status| step_mother.steps(status)}
@io.puts(format_duration(features.duration)) if features && features.duration
@io.flush
end