Class: TXTFormatter

Inherits:
ArrayFormatter show all
Defined in:
lib/teuton/report/formatter/txt_formatter.rb

Instance Method Summary collapse

Methods inherited from ArrayFormatter

#build_data, #build_final_data, #build_history_data, #build_hof_data, #build_initial_data

Methods inherited from BaseFormatter

#deinit, #init, #trim, #w

Constructor Details

#initialize(report, color = false) ⇒ TXTFormatter

Returns a new instance of TXTFormatter.



7
8
9
10
11
# File 'lib/teuton/report/formatter/txt_formatter.rb', line 7

def initialize(report, color=false)
  @color = color
  super(report)
  @data = {}
end

Instance Method Details

#processObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/teuton/report/formatter/txt_formatter.rb', line 13

def process
  rainbow_state = Rainbow.enabled
  Rainbow.enabled = @color

  build_data
  process_config
  process_logs
  process_groups
  process_results
  process_hof
  deinit

  Rainbow.enabled = rainbow_state
end