Cukes C0 Coverage Information - Simploco - RCov

step_definitions/desktop/gem_search.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
step_definitions/desktop/gem_search.rb 43 17
79.07%
47.06%

Key

Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.

Coverage Details

2 # Description    : step definitions for steps related to Gem search
3 # Author         : Chandra sekaran
4 
5 # Given the user is on the rubygems.org home page
6 Given /^the user is on the rubygems\.org home page$/ do
7   visit(CUKES::RubyGems)
8 end
9 
10 # And the user is signed in
11 And /^the user is signed in$/ do
12   on(CUKES::RubyGems).sign_in
13 end
14 
15 # And the user is signed out
16 And /^the user is signed out$/ do
17   visit(CUKES::RubyGems).sign_out
18 end
19 
20 # When the user enters "watir" in search textbox and press enter
21 When /^the user enters "(.*?)" in search textbox and press enter$/ do |search_text|
22   on(CUKES::RubyGems).search_for_gem(search_text)
23 end
24 
25 # Then the user should be redirected to gem list page of "watir" gem
26 Then /^the user should be redirected to gem list page of "(.*?)" gem$/ do |gem_name|
27   on(CUKES::RubyGems).compare_heading(gem_name)
28 end
29 
30 # When the user selects the gem having the maximum downloads
31 When /^the user selects the gem having the maximum downloads$/ do
32   @gem = on(CUKES::RubyGems).fetch_desired_gem
33   $log.success("The gem '#{@gem}' has the maximum downloads")
34 end
35 
36 # Then the user should be shown the gem description page
37 Then /^the user should be shown the gem description page$/ do
38   on(CUKES::RubyGems).fetch_gem_details(@gem)
39 end
40 
41 # When the user searches for a gem name from test data
42 When /^the user searches for a gem name from test data$/ do
43   on(CUKES::RubyGems).search_for_gem
44 end

Generated on 2015-05-08 10:40:30 +0530 with SimpleCov-RCov 0.2.3