step-stats 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31a5b9082c807dab457bae11470873cc8df7fb67
4
- data.tar.gz: 4accb736d4a3defaf78560fb9cdf34d960748630
3
+ metadata.gz: 61d424ae5998667ece4f012d2a7f420c8c584ecd
4
+ data.tar.gz: 8ec140d300de44bd0fe97c6c456ec4944778cfe2
5
5
  SHA512:
6
- metadata.gz: 1678130590ad3f30a078660921e6b2ad5c1136e22bc5bd168b4e3cd5e0233363393230343e326ae6cdd658db14fca0dd265dd6c9188822f4ea944b195cfe98d6
7
- data.tar.gz: 2e96780d7dab4eed90c7d2ed888792b955dd69b0ec4a81d62a4b4e649f2db6aedcb7e90a81312508f26a868f8c7c65eb497f198cacbb6428d8d961fd8d0bd792
6
+ metadata.gz: 9f9c1ef1999c540dbba5315d44acf4acb64b937b35adaa163a4e07eda5ef31130d2e60dc89f4c9c0dcfe681989e7b8cf1ec0e47014a1e74a071d94054a85aeaa
7
+ data.tar.gz: 6f668eb11b74e4193abf093b7c239425f308dd594af14d6537e3854616f66b09e00ea311dbd5e5597e54a181f347af51d4b7fc6c9990561b860cc5866b99b906
@@ -9,12 +9,12 @@ module StepStats
9
9
  end
10
10
 
11
11
  def before_step(step)
12
- @start_time = Time.now
12
+ @start_time = `ruby -e 'puts "%.3f" % Time.now'`.to_f
13
13
  super
14
14
  end
15
15
 
16
16
  def before_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line)
17
- @duration = Time.now - @start_time
17
+ @duration = `ruby -e 'puts "%.3f" % Time.now'`.to_f - @start_time
18
18
  @sss.add_stat(step_match.step_definition,@duration,status,file_colon_line) if @duration > 0 && !step_match.step_definition.nil?
19
19
  super
20
20
  end
@@ -9,7 +9,7 @@
9
9
  <td>Count</td>
10
10
  </thead>
11
11
  <% @data.each_with_index do |stat,index| %>
12
- <tr data-durations="<%= ERB::Util.h(stat.to_chart_data) %>">
12
+ <tr data-durations="<%= ERB::Util.h(stat.to_chart_data) %>" style="cursor: pointer; cursor: hand">
13
13
  <td>
14
14
  <span><%= index+1 %></span>
15
15
  <span class="percentage">
@@ -29,4 +29,4 @@
29
29
  </td>
30
30
  </tr>
31
31
  <% end %>
32
- </table>
32
+ </table>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: step-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sundus Yousuf