Sha256: c1fe498543446cc9f8531808eedb09b780b3518f64a092f15f045b853400c17c

Contents?: true

Size: 902 Bytes

Versions: 6

Compression:

Stored size: 902 Bytes

Contents

Then(/^I should see a test suite section in HTML$/) do
  html_test_suites.first.should_not be_nil
end

Then(/^I should see a failed test in HTML$/) do
  html_report_body.get_elements("//*[contains(@class, 'test failing')]/").to_a.size.should_not == 0
end

Then(/^the failure counter should show (\d+) tests?$/) do |fail_count|
  html_report_body.get_elements("//*[@id='fail-count']/").first.elements.to_a.first.text.to_i.should == fail_count.to_i
end

Then(/^I should see a passing test in HTML$/) do
  html_report_body.get_elements("//*[contains(@class, 'test passing')]/").to_a.size.should_not == 0
end

Then(/^I should see (\d+) tests in HTML$/) do |test_count|
  html_report_body.get_elements("//*[contains(@class, 'test ')]/").size.should == test_count.to_i
end

Then(/^I should see (\d+) test suite sections? in HTML$/) do |section_count|
  html_test_suites.size.should == section_count.to_i
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
learn-xcpretty-0.1.12 features/steps/html_steps.rb
learn-xcpretty-0.1.11 features/steps/html_steps.rb
xcpretty-0.1.6 features/steps/html_steps.rb
xcpretty-0.1.5 features/steps/html_steps.rb
xcpretty-0.1.4 features/steps/html_steps.rb
xcpretty-0.1.3 features/steps/html_steps.rb