Class: XMLFormatter

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

Instance Attribute Summary

Attributes inherited from BaseFormatter

#ext

Instance Method Summary collapse

Methods inherited from ArrayFormatter

#build_data

Methods inherited from BaseFormatter

#deinit, #init, #trim, #w

Constructor Details

#initialize(report) ⇒ XMLFormatter

Returns a new instance of XMLFormatter.



4
5
6
7
8
# File 'lib/teuton/report/formatter/default/xml.rb', line 4

def initialize(report)
  super
  @ext = "xml"
  @data = {}
end

Instance Method Details

#process(options = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/teuton/report/formatter/default/xml.rb', line 10

def process(options = {})
  build_data(options)
  w "<teuton>\n"
  w "\n"
  process_config
  process_logs
  process_groups
  process_results
  process_hof
  w "</teuton>\n"
  deinit
end