Class: RSpecJUnitFormatter
- Inherits:
-
RSpec::Core::Formatters::BaseFormatter
- Object
- RSpec::Core::Formatters::BaseFormatter
- RSpecJUnitFormatter
- 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
9 10 11 12 |
# File 'lib/rspec_junit_formatter/rspec2.rb', line 9 def dump_summary(duration, example_count, failure_count, pending_count) super xml_dump end |
#start(notification) ⇒ Object
4 5 6 7 |
# File 'lib/rspec_junit_formatter/rspec2.rb', line 4 def start(example_count) @started = Time.now super end |
#stop(notification) ⇒ Object
13 14 15 |
# File 'lib/rspec_junit_formatter/rspec3.rb', line 13 def stop(notification) @examples_notification = notification end |