report_builder 1.7 → 1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -1
- data/lib/report_builder/builder.rb +10 -5
- data/report_builder.gemspec +1 -1
- data/template/footer.erb +1 -1
- data/template/head.erb +1 -1
- data/template/hook.erb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1008b5d94e81a5cb70e14bbc1218a383c6ad9a81
|
4
|
+
data.tar.gz: 68ec449f21c5d25b62df7eac24cfb8251d393435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 799fea6775b06e8a39f49fc7c755bb047a1185893c00da2088b0152344d0a9f745b52deeb0b9c22435e89b2aa4592fa85f375b83823cc221afbb189a482c8834
|
7
|
+
data.tar.gz: 8c382e15ee1787476d47834539345366c1e145cdda2889c54fc79cab5519bb015ff067372940f721b79d4dba4308a1f3e910588e3ec8841a18a8e55899fad9e3
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,15 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
|
6
|
-
## [Unreleased](https://github.com/rajatthareja/ReportBuilder/compare/v1.
|
6
|
+
## [Unreleased](https://github.com/rajatthareja/ReportBuilder/compare/v1.8...master)
|
7
7
|
|
8
8
|
|
9
|
+
## [1.8](https://github.com/rajatthareja/ReportBuilder/compare/v1.7...v1.8) - 2018-09-02
|
10
|
+
### Fixed
|
11
|
+
- Before hook embedding
|
12
|
+
- Scenario example with tags
|
13
|
+
- HTML embedding
|
14
|
+
|
9
15
|
## [1.7](https://github.com/rajatthareja/ReportBuilder/compare/v1.6...v1.7) - 2018-08-07
|
10
16
|
### Changed
|
11
17
|
- Required Ruby Version from (>= 1.9.1) to (>= 1.9.3)
|
@@ -144,6 +144,11 @@ module ReportBuilder
|
|
144
144
|
scenario['before'] ||= []
|
145
145
|
scenario['before'].each do |before|
|
146
146
|
before['result']['duration'] ||= 0
|
147
|
+
if before['embeddings']
|
148
|
+
before['embeddings'].map! do |embedding|
|
149
|
+
decode_embedding(embedding)
|
150
|
+
end
|
151
|
+
end
|
147
152
|
before.merge! 'status' => before['result']['status'], 'duration' => before['result']['duration']
|
148
153
|
end
|
149
154
|
scenario['steps'] ||= []
|
@@ -185,15 +190,15 @@ module ReportBuilder
|
|
185
190
|
scenario.merge! 'status' => scenario_status(scenario), 'duration' => total_time(scenario['before']) + total_time(scenario['steps']) + total_time(scenario['after'])
|
186
191
|
end
|
187
192
|
feature['elements'] = feature['elements'].group_by do |scenario|
|
188
|
-
scenario['id']
|
193
|
+
scenario['id'] + scenario['line'].to_s
|
189
194
|
end.values.map do |scenario_group|
|
190
|
-
|
195
|
+
the_scenario = scenario_group.find do |scenario|
|
191
196
|
scenario['status'] == 'passed'
|
192
197
|
end || scenario_group.first
|
193
198
|
if scenario_group.size > 1
|
194
|
-
|
199
|
+
the_scenario['name'] += " (x#{scenario_group.size})"
|
195
200
|
end
|
196
|
-
|
201
|
+
the_scenario
|
197
202
|
end
|
198
203
|
feature.merge! 'status' => feature_status(feature), 'duration' => total_time(feature['elements'])
|
199
204
|
end
|
@@ -238,7 +243,7 @@ module ReportBuilder
|
|
238
243
|
def decode_embedding(embedding)
|
239
244
|
if embedding['mime_type'] =~ /^image\/(png|gif|jpg|jpeg)/
|
240
245
|
embedding['data'] = decode_image(embedding['data'])
|
241
|
-
elsif embedding['mime_type'] =~ /^text\/plain/
|
246
|
+
elsif embedding['mime_type'] =~ /^text\/(plain|html)/
|
242
247
|
embedding['data'] = decode_text(embedding['data'])
|
243
248
|
end
|
244
249
|
embedding
|
data/report_builder.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'report_builder'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.8'
|
4
4
|
s.bindir = 'bin'
|
5
5
|
s.summary = 'ReportBuilder'
|
6
6
|
s.description = 'Ruby gem to merge Cucumber JSON reports and build mobile-friendly HTML Test Report, JSON report and retry file.'
|
data/template/footer.erb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
</div>
|
8
8
|
</footer>
|
9
9
|
|
10
|
-
<script type="text/javascript" src="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.
|
10
|
+
<script type="text/javascript" src="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.8/js/report.builder.min.js"></script>
|
11
11
|
|
12
12
|
<% if options[:voice_commands] %>
|
13
13
|
<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
|
data/template/head.erb
CHANGED
@@ -8,7 +8,7 @@
|
|
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.
|
11
|
+
<link href="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.8/css/report.builder.min.css" rel="stylesheet">
|
12
12
|
|
13
13
|
<% if options[:additional_css] %>
|
14
14
|
<% if options[:additional_css] =~ /^http(|s):\/\/.*\.css$/ %>
|
data/template/hook.erb
CHANGED
@@ -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'] %>">
|
@@ -26,6 +27,5 @@
|
|
26
27
|
<% elsif embedding['mime_type'] =~ /^text\/html/ %>
|
27
28
|
<%= embedding['data'] %>
|
28
29
|
<% end %>
|
29
|
-
<br/>
|
30
30
|
<% end %>
|
31
31
|
<% end %>
|
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
|
+
version: '1.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajat Thareja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-02 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
19
|
version: 1.8.1
|
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
26
|
version: 1.8.1
|
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
|
@@ -98,18 +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
103
|
version: 1.9.3
|
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
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.4.6
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: ReportBuilder
|