# File lib/cucumber/formatter/html.rb, line 582 def print_status_counts counts = [:failed, :skipped, :undefined, :pending, :passed].map do |status| elements = yield status elements.any? ? "#{elements.length} #{status.to_s}" : nil end.compact return " (#{counts.join(', ')})" if counts.any? end