class RSpec::JUnit
Constants
- VERSION
Attributes
examples[R]
output[R]
Public Class Methods
new(output)
click to toggle source
# File lib/rspec/junit.rb, line 16 def initialize(output) @output = output @examples = RSpec::JUnit::ExampleCollection.new end
Public Instance Methods
dump_summary(summary)
click to toggle source
# File lib/rspec/junit.rb, line 33 def dump_summary(summary) renderer = RSpec::JUnit::Renderer.new @examples, summary.duration @output.puts renderer.render end
example_failed(notification)
click to toggle source
# File lib/rspec/junit.rb, line 25 def example_failed(notification) @examples << RSpec::JUnit::FailedExample.new(notification) end
example_passed(notification)
click to toggle source
# File lib/rspec/junit.rb, line 21 def example_passed(notification) @examples << RSpec::JUnit::PassedExample.new(notification) end
example_pending(notification)
click to toggle source
# File lib/rspec/junit.rb, line 29 def example_pending(notification) @examples << RSpec::JUnit::PendingExample.new(notification) end