Class: Protest::Reports::Progress
- Inherits:
-
Protest::Report
- Object
- Protest::Report
- Protest::Reports::Progress
- Includes:
- Utils::ColorfulOutput, Utils::Summaries
- Defined in:
- lib/protest/reports/progress.rb
Overview
The :progress
report will output a .
for each passed test in the suite, a P
for each pending test, an F
for each test that failed an assertion, and an E
for each test that raised an unrescued exception.
At the end of the suite it will output a list of all pending tests, with files and line numbers, and after that a list of all failures and errors, which also contains the first 3 lines of the backtrace for each.
Instance Attribute Summary collapse
-
#stream ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(stream = STDOUT) ⇒ Progress
constructor
Set the stream where the report will be written to.
Methods included from Utils::ColorfulOutput
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) ⇒ Progress
Set the stream where the report will be written to. STDOUT by default.
16 17 18 |
# File 'lib/protest/reports/progress.rb', line 16 def initialize(stream=STDOUT) @stream = stream end |
Instance Attribute Details
#stream ⇒ Object (readonly)
:nodoc:
13 14 15 |
# File 'lib/protest/reports/progress.rb', line 13 def stream @stream end |