Class: Protest::Reports::Stories

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

Overview

This report is based on Citrusbyte’s Stories, by Damian Janowski and Michel Martens.

Defined Under Namespace

Classes: PDF

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) ⇒ Stories

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



11
12
13
# File 'lib/protest/reports/stories.rb', line 11

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

Instance Attribute Details

#streamObject (readonly)

:nodoc:



8
9
10
# File 'lib/protest/reports/stories.rb', line 8

def stream
  @stream
end