def summary_line(example_count, failure_count, pending_count)
      pending_count -= skipped_count
      summary = pluralize(example_count, "example")
      summary << " ("
      summary << red(pluralize(failure_count, "failure"))
      summary << ", " << yellow("#{pending_count} pending") if pending_count > 0
      summary << ", " << cyan("#{skipped_count} skipped") if skipped_count > 0
      summary << ")"
      summary
    end
def summary_line(example_count, failure_count, pending_count)
      pending_count -= skipped_count
      summary = pluralize(example_count, "example")
      summary << " ("
      summary << red(pluralize(failure_count, "failure"))
      summary << ", " << yellow("#{pending_count} pending") if pending_count > 0
      summary << ", " << cyan("#{skipped_count} skipped") if skipped_count > 0
      summary << ")"
      summary
    end
Generates a colorized summary line based on the supplied arguments.

   formatter.summary_line(1, 0, 0)
   # => 1 example (0 failures)

   formatter.summary_line(2, 1, 1)
   # => 2 examples (1 failure, 1 pending)

   formatter.skipped_count += 1
   formatter.summary_line(2, 0, 0)
   # => 2 examples (1 failure, 1 skipped)

 @param [Integer] example_count the total examples run
 @param [Integer] failure_count the failed examples
 @param [Integer] pending_count the pending examples

 @return [String] the formatted summary line

 @api rspec