report_builder 1.4 → 1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- <table id="summaryTable" class="bordered brown lighten-1 white-text" width="100%">
1
+ <table id="summaryTable" class="bordered <%= options[:color] %> lighten-1 white-text" width="100%">
2
2
  <thead>
3
3
  <tr>
4
4
  <th class="hide-on-small-only">Group</th>
@@ -4,11 +4,11 @@
4
4
 
5
5
  <title><%= options[:report_title] %></title>
6
6
 
7
- <link rel="icon" href="http://reportbuilder.rajatthareja.com/rb.ico">
7
+ <link rel="icon" href="https://reportbuilder.rajatthareja.com/rb.ico">
8
8
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
9
9
  <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet">
10
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css" media="screen,projection"/>
11
- <link href="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.4/css/report.builder.min.css" rel="stylesheet">
11
+ <link href="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.9/css/report.builder.min.css" rel="stylesheet">
12
12
 
13
13
  <% if options[:additional_css] %>
14
14
  <% if options[:additional_css] =~ /^http(|s):\/\/.*\.css$/ %>
@@ -3,25 +3,25 @@
3
3
  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.0/Chart.min.js"></script>
4
4
  <script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
5
5
 
6
- <header class="brown lighten-5">
7
- <div class="row brown lighten-1">
8
- <div class="col m8 hide-on-small-only">
6
+ <header class="<%= options[:color] %> lighten-5">
7
+ <div class="row <%= options[:color] %> lighten-1">
8
+ <div class="col m6 hide-on-small-only">
9
9
  <h5 class="truncate white-text tooltipped" data-tooltip="<%= options[:report_title] %>"><%= options[:report_title] %></h5>
10
10
  </div>
11
11
 
12
- <div class="col m4 s12 brown lighten-1">
13
- <ul class="tabs brown lighten-1">
12
+ <div class="col m6 s12 <%= options[:color] %> lighten-1">
13
+ <ul class="tabs <%= options[:color] %> lighten-1 row" style="overflow-x: hidden">
14
14
  <li class="tab col s3">
15
- <a class="btn brown lighten-3 active blue-text waves-effect waves-light tooltipped" data-tooltip="Overview" href="#overview"><i class="material-icons">public</i></a>
15
+ <a class="<%= options[:color] %> lighten-3 active blue-text waves-effect waves-light tooltipped" data-tooltip="Results Overview" href="#overview"><i class="material-icons">assessment</i> Overview</a>
16
16
  </li>
17
17
  <li class="tab col s3">
18
- <a class="btn brown lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Features" href="#features"><i class="material-icons">view_headline</i></a>
18
+ <a class="<%= options[:color] %> lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Scenarios by Features" href="#features"><i class="material-icons">view_headline</i> Features</a>
19
19
  </li>
20
20
  <li class="tab col s3">
21
- <a class="btn brown lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Summary" href="#summary"><i class="material-icons">view_comfy</i></a>
21
+ <a class="<%= options[:color] %> lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Scenarios Summary Table" href="#summary"><i class="material-icons">view_comfy</i> Summary</a>
22
22
  </li>
23
23
  <li class="tab col s3">
24
- <a class="btn brown lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Errors" href="#errors"><i class="material-icons">bug_report</i></a>
24
+ <a class="<%= options[:color] %> lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Failed Scenarios" href="#errors"><i class="material-icons">bug_report</i> Errors</a>
25
25
  </li>
26
26
  </ul>
27
27
  </div>
@@ -13,6 +13,7 @@
13
13
 
14
14
  <% if hook['embeddings'] %>
15
15
  <% hook['embeddings'].each do |embedding| %>
16
+ <br>
16
17
  <% if embedding['mime_type'] =~ /^image\/(png|gif|jpg|jpeg)/ %>
17
18
  <% if options[:include_images] %>
18
19
  <img class="materialboxed" data-caption='<%= scenario['name'] %>' width="250" src="data:<%= embedding['mime_type'] %>;base64,<%= embedding['data'] %>">
@@ -21,8 +22,10 @@
21
22
  <% if embedding['data'].include?('|||') %>
22
23
  <% title, link = embedding['data'].split('|||') %><a href="<%= link %>"><%= title %></a>
23
24
  <% else %>
24
- <%= embedding['data'] %>
25
+ <a href="<%= embedding['data'] %>"><%= embedding['data'] %></a>
25
26
  <% end %>
27
+ <% elsif embedding['mime_type'] =~ /^text\/html/ %>
28
+ <%= embedding['data'] %>
26
29
  <% end %>
27
30
  <% end %>
28
31
  <% end %>
@@ -11,22 +11,22 @@
11
11
 
12
12
  <%= get('scenarios').result(binding) %>
13
13
 
14
- <main class="brown lighten-5">
14
+ <main class="<%= options[:color] %> lighten-5">
15
15
  <div class="row">
16
16
 
17
- <div id="overview" class="col s12 brown lighten-5">
17
+ <div id="overview" class="col s12 <%= options[:color] %> lighten-5">
18
18
  <%= get('overview').result(binding) %>
19
19
  </div>
20
20
 
21
- <div id="features" class="col s12 brown lighten-5 white-text">
21
+ <div id="features" class="col s12 <%= options[:color] %> lighten-5 white-text">
22
22
  <%= get('features').result(binding) %>
23
23
  </div>
24
24
 
25
- <div id="summary" class="col s12 brown lighten-5">
25
+ <div id="summary" class="col s12 <%= options[:color] %> lighten-5">
26
26
  <%= get('summary').result(binding) %>
27
27
  </div>
28
28
 
29
- <div id="errors" class="col s12 brown lighten-5">
29
+ <div id="errors" class="col s12 <%= options[:color] %> lighten-5">
30
30
  <%= get('errors').result(binding) %>
31
31
  </div>
32
32
  </div>
@@ -7,6 +7,10 @@
7
7
 
8
8
  <b><%= step['keyword'] %></b> <%= step['name'] %> (<%= duration(step['duration']) %>)
9
9
 
10
+ <% if step['doc_string'] %>
11
+ <%= '<br/><pre>' + ERB::Util.html_escape(step['doc_string']['value']) + '</pre>' %>
12
+ <% end %>
13
+
10
14
  <% if step['rows'] %>
11
15
  <% step['rows'].each do |row| %>
12
16
  <%= '<br/>| ' %>
@@ -1,10 +1,16 @@
1
- <table id="summaryTable" class="bordered brown lighten-1 white-text" width="100%">
1
+ <table id="summaryTable" class="bordered <%= options[:color] %> lighten-1 white-text" width="100%">
2
2
  <thead>
3
3
  <tr>
4
4
  <th class="hide-on-small-only">Feature</th>
5
5
  <th>Scenario</th>
6
6
  <th class="hide">Tags</th>
7
7
  <th>Status</th>
8
+
9
+
10
+ <% if options[:tag_filter] %>
11
+ <th class="hide-on-small-only">Filtered Tags</th>
12
+ <% end %>
13
+
8
14
  <th class="hide-on-small-only">Error</th>
9
15
  </tr>
10
16
  </thead>
@@ -2,8 +2,8 @@
2
2
  <%= feature['name'] %>
3
3
  </td>
4
4
 
5
- <td class="hoverable">
6
- <a class="modal-trigger white-text" href="#<%= sid %>"><%= scenario['name'] %></a>
5
+ <td class="hoverable modal-trigger white-text" data-target="<%= sid %>">
6
+ <%= scenario['name'] %>
7
7
  </td>
8
8
 
9
9
  <td class="hide">
@@ -18,6 +18,16 @@
18
18
  <%= scenario['status'] %>
19
19
  </td>
20
20
 
21
+ <% if options[:tag_filter] %>
22
+ <td class="hide-on-small-only">
23
+ <% scenario['tags'].each do |tag| %>
24
+ <% if tag['name'].match(/#{options[:tag_filter]}/) %>
25
+ <%= tag['name'] %>
26
+ <% end %>
27
+ <% end %>
28
+ </td>
29
+ <% end %>
30
+
21
31
  <td class="hide-on-small-only">
22
32
  <% if scenario['error'] %>
23
33
  <%= scenario['error'] %>
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: report_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
4
+ version: '1.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajat Thareja
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-29 00:00:00.000000000 Z
11
+ date: 2020-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.8.1
19
+ version: 2.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.8.1
26
+ version: 2.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - <
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - <
38
+ - - "<"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - <
45
+ - - "<"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - <
52
+ - - "<"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.0'
55
55
  description: Ruby gem to merge Cucumber JSON reports and build mobile-friendly HTML
@@ -88,7 +88,7 @@ files:
88
88
  - template/step.erb
89
89
  - template/summary.erb
90
90
  - template/summary_row.erb
91
- homepage: http://reportbuilder.rajatthareja.com
91
+ homepage: https://reportbuilder.rajatthareja.com
92
92
  licenses:
93
93
  - MIT
94
94
  metadata: {}
@@ -98,19 +98,18 @@ require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 1.9.1
103
+ version: 2.0.0
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements:
110
110
  - Cucumber >= 2.1.0 test results in JSON format
111
- rubyforge_project:
112
- rubygems_version: 2.4.6
113
- signing_key:
111
+ rubygems_version: 3.1.2
112
+ signing_key:
114
113
  specification_version: 4
115
114
  summary: ReportBuilder
116
115
  test_files: []