Sha256: 3cc50820cc1725d5c7558f297e31bca6c8a0a1d3eeacbba654fc77baf7ddc8c9

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

Then(/^I should see a failed test node in my report$/) do
  junit_report.root.elements.to_a.detect do |node|
    element = node.elements.to_a.first
    element && element.name == "failure"
  end.should_not be_nil
end

Then(/^I should see a passing test node in my report$/) do
  junit_report.root.elements.to_a.detect do |node|
    node.attributes["time"] != nil
  end.should_not be_nil
end

Then(/^I should see a test suite node$/) do
  junit_report.root.should_not be_nil
end

Then(/^I should see (\d+) tests in my report$/) do |test_count|
  junit_report.root.attributes["tests"].should == test_count
  junit_report.root.elements.to_a.count.should == test_count.to_i
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xcpretty-0.0.6 features/steps/junit_steps.rb