Class: RSpecJUnitFormatter

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/rspec_junit_formatter.rb,
lib/rspec_junit_formatter/rspec2.rb,
lib/rspec_junit_formatter/rspec3.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



11
12
13
14
# File 'lib/rspec_junit_formatter/rspec2.rb', line 11

def dump_summary(duration, example_count, failure_count, pending_count)
  super
  xml_dump
end

#start(notification) ⇒ Object



6
7
8
9
# File 'lib/rspec_junit_formatter/rspec2.rb', line 6

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

#stop(notification) ⇒ Object



15
16
17
# File 'lib/rspec_junit_formatter/rspec3.rb', line 15

def stop(notification)
  @examples_notification = notification
end