Class: Protest::Reports::Summary

Inherits:
Protest::Report show all
Includes:
Utils::ColorfulOutput, Utils::Summaries
Defined in:
lib/protest/reports/summary.rb

Overview

The :summary report will output a brief summary with the total number of tests, assertions, passed tests, pending tests, failed tests and errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::ColorfulOutput

colors, #print, #puts

Methods included from Utils::Summaries

#summarize_errors, #summarize_pending_tests, #summarize_test_totals

Methods inherited from Protest::Report

#add_assertion, #assertions, #errors, #failures, #failures_and_errors, on, #passes, #pendings, #tests, #time_elapsed, #total_tests

Constructor Details

#initialize(stream = STDOUT) ⇒ Summary

Set the stream where the report will be written to. STDOUT by default.



12
13
14
# File 'lib/protest/reports/summary.rb', line 12

def initialize(stream=STDOUT)
  @stream = stream
end

Instance Attribute Details

#streamObject (readonly)

:nodoc:



9
10
11
# File 'lib/protest/reports/summary.rb', line 9

def stream
  @stream
end