Class: RspecTestlinkJunitformatter

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/rspec_testlink_junit_formatter.rb

Overview

Dumps rspec results as a JUnit XML file. Based on XML schema: windyroad.org/dl/Open%20Source/JUnit.xsd

Instance Method Summary collapse

Instance Method Details

#dump_summary(notification) ⇒ Object



27
28
29
30
# File 'lib/rspec_testlink_junit_formatter.rb', line 27

def dump_summary(notification)
  @summary_notification = notification
  xml_dump
end

#start(notification) ⇒ Object



17
18
19
20
21
# File 'lib/rspec_testlink_junit_formatter.rb', line 17

def start(notification)
  @start_notification = notification
  @started = Time.now
  super
end

#stop(notification) ⇒ Object



23
24
25
# File 'lib/rspec_testlink_junit_formatter.rb', line 23

def stop(notification)
  @examples_notification = notification
end