pretty_face 0.7 → 0.8

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.
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ === Release 0.8 / 2013-8-8
2
+ * Fixed pathing error when running within RiubyMine
3
+
1
4
  === Release 0.7 / 2013-7-29
2
5
  * Fixed formatting for error detail display
3
6
  * Creates directory if not present before saving results to html file
@@ -19,8 +19,8 @@ Feature: pages that show details for features
19
19
  Then the file "results/basic.html" should contain "<img src="
20
20
 
21
21
  Scenario: It should show start time and duration in the header
22
- Then the file "results/basic.html" should contain "Feature started:"
23
- And the file "results/basic.html" should contain "Duration:"
22
+ Then the file "results/basic.html" should contain "started:"
23
+ And the file "results/basic.html" should contain "duration:"
24
24
 
25
25
  Scenario: Generating some basic stats from the erb
26
26
  Then the file "results/basic.html" should contain "<th>Executed<"
@@ -74,8 +74,8 @@ Feature: pages that show details for features
74
74
 
75
75
  Scenario: It should display error message with a yellow background and red text
76
76
  Then the file "results/basic.html" should contain "RSpec::Expectations::ExpectationNotMetError"
77
- And the background of the error message row should be "255, 251, 211"
78
- And the text of the of the error message row should be "194, 0, 0"
77
+ And the background of the error message row should be "rgba(249, 231, 8, 1)"
78
+ And the text of the of the error message row should be "rgba(0, 0, 0, 1)"
79
79
 
80
80
  Scenario: Embedding an image into the page
81
81
  Then the file "results/basic.html" should contain "<img id='img_0' style='display: none' src='images/autotrader.png'/>"
@@ -98,5 +98,5 @@ Feature: pages that show details for features
98
98
  When I have a feature header partial in the correct location
99
99
  And I run `cucumber fixtures --profile fixture`
100
100
  Then the file "results/basic.html" should contain "The Code Monkeys"
101
- And the file "results/basic.html" should contain "Test Results"
101
+ And the file "results/basic.html" should contain "Feature Results"
102
102
  And I should remove the feature header partial file
@@ -16,7 +16,7 @@ Feature: pretty face report
16
16
 
17
17
  Scenario: Generating some basic stats from the erb
18
18
  Then the file "results/fixture.html" should contain "<th>Executed<"
19
- And the file "results/fixture.html" should contain "<th>Average<br/>Duration"
19
+ And the file "results/fixture.html" should contain "<th>Average Duration"
20
20
  And the file "results/fixture.html" should contain "Scenarios"
21
21
  And the file "results/fixture.html" should contain "Steps"
22
22
 
@@ -36,8 +36,8 @@ Feature: pretty face report
36
36
  | results/images/face.jpg |
37
37
 
38
38
  Scenario: It should show start time and duration in the header
39
- Then the file "results/fixture.html" should contain "Tests started:"
40
- And the file "results/fixture.html" should contain "Duration:"
39
+ Then the file "results/fixture.html" should contain "started:"
40
+ And the file "results/fixture.html" should contain "duration:"
41
41
 
42
42
  Scenario: It should capture scenario and step statuses
43
43
  Then the file "results/fixture.html" should contain "Passed"
@@ -10,7 +10,7 @@ Then /^I should remove the logo file$/ do
10
10
  end
11
11
 
12
12
  When /^I have a suite header partial in the correct location$/ do
13
- FileUtils.cp "features/support/_suite_header.erb", "features/support/pretty_face"
13
+ FileUtils.cp "features/support/_suite_header.erb", "features/support/pretty_face/"
14
14
  end
15
15
 
16
16
  Then /^I should remove the suite header partial file$/ do
@@ -18,7 +18,7 @@ Then /^I should remove the suite header partial file$/ do
18
18
  end
19
19
 
20
20
  When /^I have a feature header partial in the correct location$/ do
21
- FileUtils.cp "features/support/_feature_header.erb", "features/support/pretty_face"
21
+ FileUtils.cp "features/support/_feature_header.erb", "features/support/pretty_face/"
22
22
  end
23
23
 
24
24
  Then /^I should remove the feature header partial file$/ do
Binary file
@@ -30,6 +30,7 @@ module PrettyFace
30
30
  end
31
31
 
32
32
  def set_path_and_file(path_or_io)
33
+ return if path_or_io.nil?
33
34
  dir = File.dirname(path_or_io)
34
35
  FileUtils.mkdir_p dir unless File.directory? dir
35
36
  @io = ensure_io(path_or_io, 'html')
@@ -145,6 +145,10 @@ module PrettyFace
145
145
  def has_background?
146
146
  background.length > 0
147
147
  end
148
+
149
+ def file
150
+ @file.split('features/').last
151
+ end
148
152
  end
149
153
 
150
154
  class ReportScenario
@@ -1,3 +1,3 @@
1
1
  module PrettyFace
2
- VERSION = "0.7"
2
+ VERSION = "0.8"
3
3
  end
data/pretty_face.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.rubyforge_project = "pretty_face"
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features,fixtures}/*`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_face
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: '0.8'
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jeffrey S. Morgan
@@ -12,90 +13,102 @@ authors:
12
13
  autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
- date: 2013-07-29 00:00:00.000000000 Z
16
+ date: 2013-08-08 00:00:00.000000000 Z
16
17
  dependencies:
17
18
  - !ruby/object:Gem::Dependency
18
19
  name: actionpack
19
20
  requirement: !ruby/object:Gem::Requirement
21
+ none: false
20
22
  requirements:
21
- - - '>='
23
+ - - ! '>='
22
24
  - !ruby/object:Gem::Version
23
25
  version: 3.2.13
24
26
  type: :runtime
25
27
  prerelease: false
26
28
  version_requirements: !ruby/object:Gem::Requirement
29
+ none: false
27
30
  requirements:
28
- - - '>='
31
+ - - ! '>='
29
32
  - !ruby/object:Gem::Version
30
33
  version: 3.2.13
31
34
  - !ruby/object:Gem::Dependency
32
35
  name: syntax
33
36
  requirement: !ruby/object:Gem::Requirement
37
+ none: false
34
38
  requirements:
35
- - - '>='
39
+ - - ! '>='
36
40
  - !ruby/object:Gem::Version
37
41
  version: '0'
38
42
  type: :runtime
39
43
  prerelease: false
40
44
  version_requirements: !ruby/object:Gem::Requirement
45
+ none: false
41
46
  requirements:
42
- - - '>='
47
+ - - ! '>='
43
48
  - !ruby/object:Gem::Version
44
49
  version: '0'
45
50
  - !ruby/object:Gem::Dependency
46
51
  name: cucumber
47
52
  requirement: !ruby/object:Gem::Requirement
53
+ none: false
48
54
  requirements:
49
- - - '>='
55
+ - - ! '>='
50
56
  - !ruby/object:Gem::Version
51
57
  version: '0'
52
58
  type: :development
53
59
  prerelease: false
54
60
  version_requirements: !ruby/object:Gem::Requirement
61
+ none: false
55
62
  requirements:
56
- - - '>='
63
+ - - ! '>='
57
64
  - !ruby/object:Gem::Version
58
65
  version: '0'
59
66
  - !ruby/object:Gem::Dependency
60
67
  name: rspec
61
68
  requirement: !ruby/object:Gem::Requirement
69
+ none: false
62
70
  requirements:
63
- - - '>='
71
+ - - ! '>='
64
72
  - !ruby/object:Gem::Version
65
73
  version: '0'
66
74
  type: :development
67
75
  prerelease: false
68
76
  version_requirements: !ruby/object:Gem::Requirement
77
+ none: false
69
78
  requirements:
70
- - - '>='
79
+ - - ! '>='
71
80
  - !ruby/object:Gem::Version
72
81
  version: '0'
73
82
  - !ruby/object:Gem::Dependency
74
83
  name: aruba
75
84
  requirement: !ruby/object:Gem::Requirement
85
+ none: false
76
86
  requirements:
77
- - - '>='
87
+ - - ! '>='
78
88
  - !ruby/object:Gem::Version
79
89
  version: '0'
80
90
  type: :development
81
91
  prerelease: false
82
92
  version_requirements: !ruby/object:Gem::Requirement
93
+ none: false
83
94
  requirements:
84
- - - '>='
95
+ - - ! '>='
85
96
  - !ruby/object:Gem::Version
86
97
  version: '0'
87
98
  - !ruby/object:Gem::Dependency
88
99
  name: cucumber
89
100
  requirement: !ruby/object:Gem::Requirement
101
+ none: false
90
102
  requirements:
91
- - - '>='
103
+ - - ! '>='
92
104
  - !ruby/object:Gem::Version
93
105
  version: '0'
94
106
  type: :runtime
95
107
  prerelease: false
96
108
  version_requirements: !ruby/object:Gem::Requirement
109
+ none: false
97
110
  requirements:
98
- - - '>='
111
+ - - ! '>='
99
112
  - !ruby/object:Gem::Version
100
113
  version: '0'
101
114
  description: HTML Report/Formatter for cucumber that allows user to modify erb in
@@ -130,6 +143,7 @@ files:
130
143
  - features/support/env.rb
131
144
  - features/support/error_display.rb
132
145
  - features/support/hooks.rb
146
+ - features/support/logo.png
133
147
  - fixtures/advanced.feature
134
148
  - fixtures/background.feature
135
149
  - fixtures/basic.feature
@@ -161,45 +175,33 @@ files:
161
175
  - lib/pretty_face/templates/undefined.png
162
176
  - lib/pretty_face/version.rb
163
177
  - pretty_face.gemspec
164
- - sample_report/LisaCrispin1.png
165
- - sample_report/LisaCrispin2.png
166
- - sample_report/blue_s.jpeg
167
- - sample_report/green_bar.jpeg
168
- - sample_report/green_check.jpg
169
- - sample_report/red_bar.gif
170
- - sample_report/red_x.jpg
171
- - sample_report/sample_report.html
172
- - sample_report/some_code/gherkin_formatter_adapter.rb
173
- - sample_report/some_code/html.rb
174
- - sample_report/some_code/ordered_xml_markup.rb
175
- - sample_report/some_code/summary.rb
176
- - sample_report/yellow_o.jpg
177
178
  - spec/lib/customization_spec.rb
178
179
  - spec/lib/html_formatter_spec.rb
179
180
  - spec/spec_helper.rb
180
181
  homepage: http://github.com/cheezy/pretty_face
181
182
  licenses:
182
183
  - MIT
183
- metadata: {}
184
184
  post_install_message:
185
185
  rdoc_options: []
186
186
  require_paths:
187
187
  - lib
188
188
  required_ruby_version: !ruby/object:Gem::Requirement
189
+ none: false
189
190
  requirements:
190
- - - '>='
191
+ - - ! '>='
191
192
  - !ruby/object:Gem::Version
192
193
  version: '0'
193
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
+ none: false
194
196
  requirements:
195
- - - '>='
197
+ - - ! '>='
196
198
  - !ruby/object:Gem::Version
197
199
  version: '0'
198
200
  requirements: []
199
201
  rubyforge_project: pretty_face
200
- rubygems_version: 2.0.3
202
+ rubygems_version: 1.8.25
201
203
  signing_key:
202
- specification_version: 4
204
+ specification_version: 3
203
205
  summary: HTML Report/Formatter for Cucumber and RSpec
204
206
  test_files:
205
207
  - features/feature_pages.feature
@@ -210,6 +212,15 @@ test_files:
210
212
  - features/support/env.rb
211
213
  - features/support/error_display.rb
212
214
  - features/support/hooks.rb
215
+ - features/support/logo.png
216
+ - fixtures/advanced.feature
217
+ - fixtures/background.feature
218
+ - fixtures/basic.feature
219
+ - fixtures/failing_background.feature
220
+ - fixtures/more/more.feature
221
+ - fixtures/step_definitions/advanced_steps.rb
222
+ - fixtures/step_definitions/basic_steps.rb
223
+ - fixtures/support/env.rb
213
224
  - spec/lib/customization_spec.rb
214
225
  - spec/lib/html_formatter_spec.rb
215
226
  - spec/spec_helper.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: c04858604dd792e0a464a768de1b6e5fcd79db14
4
- data.tar.gz: 002b08c21357fb3ca6d54a6af6bee88a256271d7
5
- SHA512:
6
- metadata.gz: 2860b14d2c0d21e84e21832d92ef9ba68d4fb4c6c807baac433cd408d20a2bb3271e0fd5f48810520757ec9b911225367cd6597757cdbe37d5765cb9c67dd8c0
7
- data.tar.gz: a43c2ca722d0022e6ce6653525fb0d90985cc37e7e76c1ab26235e54c3b39e5b6341a5fba673047a056528ffe93d1c0997c4a550251f5c8b1e06d16991a14ee5
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,167 +0,0 @@
1
- <html>
2
- <head>
3
- <style type="text/css">
4
-
5
- a, a:visited {
6
- color: #4B7CAB;
7
- }
8
-
9
- div {
10
- padding: 5px;
11
- }
12
-
13
- h2 {
14
- margin: 0;
15
- }
16
-
17
- .summary td {
18
- font-size: .8em;
19
- text-align: center;
20
- width: 150px;
21
- }
22
-
23
- .failed td {
24
- font-size: .8em;
25
- }
26
- </style>
27
-
28
- </head>
29
- <body style="font-family: GeosansLightRegular,Arial,Helvetica,sans-serif; font-size: .8em">
30
- <div style="float: left;"><img src="dogs.png" width="200" /></div>
31
- <div style="float: left;">
32
- <h2 style="color: #282828; margin-top: 12px; margin-bottom: 15px;">Project Name Test Results</h2>
33
- <span>Tests started: Wed August 7, 2012 at 3:26:18 PM</span>
34
- <br />
35
- <span>Duration: 45 minutes, 26 seconds</span>
36
- </div>
37
- <div style="float: right;">
38
- <input type="text" value="Search by feature or scenario" style="width: 250px; color: gray;" />
39
- </div>
40
-
41
- <br />
42
- <div style="width: 99%; margin-top: 15px; float: left; -moz-border-radius: 15px; border-radius: 15px; background-color: #E0E0E0">
43
- <h2 style="color: white; margin-left: 5px; margin-top: 5px;">Summary</h2>
44
-
45
- <table cellspacing="0" cellpadding="7" class="summary">
46
- <tr>
47
- <th></th>
48
- <th>Executed</th>
49
- <th><a href="">Passed</a></th>
50
- <th><a href="">Failed</a></th>
51
- <th><a href="">Skipped</a></th>
52
- <th><a href="">Undefined</a></th>
53
- <th><a href="">Pending</a></th>
54
- <th>Average<br /> Duration</th>
55
- </tr>
56
- <tr>
57
- <td style="text-align: left; font-size: 1em; font-weight: bold">Scenarios</td>
58
- <td>112</td>
59
- <td>100 (89%)</td>
60
- <td>12 (11%)</td>
61
- <td>0 (0%)</td>
62
- <td>0 (0%)</td>
63
- <td>0 (0%)</td>
64
- <td>00:00:24</td>
65
- </tr>
66
- <tr>
67
- <td style="text-align: left; font-size: 1em; font-weight: bold">Steps</td>
68
- <td>580</td>
69
- <td>565 (97%)</td>
70
- <td>15 (3%)</td>
71
- <td>0 (0%)</td>
72
- <td>0 (0%)</td>
73
- <td>0 (0%)</td>
74
- <td>00:00:05</td>
75
- </tr>
76
- </table>
77
- </div>
78
-
79
- <div style="width: 100%; float: left;">
80
- <br />
81
- <h2 style="color: #A00000; margin-top: 15px; margin-left: 5px;">Tests With Failures:</h2>
82
- <br />
83
- <table cellspacing="0" cellpadding="7" border="0" class="failed">
84
- <tr>
85
- <th></th>
86
- <th style="text-align: left;">Feature</th>
87
- <th style="text-align: left;">Scenario</th>
88
- <th style="text-align: left;">File</th>
89
- </tr>
90
- <tr>
91
- <td><img src="red_x.jpg" width="30"/></td>
92
- <td>Adopting Puppies</td>
93
- <td><a href=".">Thank you message should be displayed when adoption is complete</a></td>
94
- <td style="color: gray;">/projects/pretty_face/features/adopting_puppies.feature</td>
95
- </tr>
96
- <tr>
97
- <td><img src="red_x.jpg" width="30"/></td>
98
- <td>Adopting Puppies</td>
99
- <td><a href=".">First name is a required field</a></td>
100
- <td style="color: gray;">/projects/pretty_face/features/adopting_puppies.feature</td>
101
- </tr>
102
- <tr>
103
- <td><img src="red_x.jpg" width="30"/></td>
104
- <td>Adopting Kittens</td>
105
- <td><a href=".">First name is a required field</a></td>
106
- <td style="color: gray;">/projects/pretty_face/features/adopting_kittens.feature</td>
107
- </tr>
108
- <tr>
109
- <td><img src="red_x.jpg" width="30"/></td>
110
- <td>Adopting Hamsters</td>
111
- <td><a href=".">First name is a required field</a></td>
112
- <td style="color: gray;">/projects/pretty_face/features/adopting_hamsters.feature</td>
113
- </tr>
114
- <tr>
115
- <td><img src="red_x.jpg" width="30"/></td>
116
- <td>Adopting Ponies</td>
117
- <td><a href=".">First name is a required field</a></td>
118
- <td style="color: gray;">/projects/pretty_face/features/adopting_ponies.feature</td>
119
- </tr>
120
- <tr>
121
- <td><img src="red_x.jpg" width="30"/></td>
122
- <td>Adopting Frogs</td>
123
- <td><a href=".">First name is a required field</a></td>
124
- <td style="color: gray;">/projects/pretty_face/features/adopting_frogs.feature</td>
125
- </tr>
126
- <tr>
127
- <td><img src="red_x.jpg" width="30"/></td>
128
- <td>Adopting Monkeys</td>
129
- <td><a href=".">First name is a required field</a></td>
130
- <td style="color: gray;">/projects/pretty_face/features/adopting_monkeys.feature</td>
131
- </tr>
132
- <tr>
133
- <td><img src="red_x.jpg" width="30"/></td>
134
- <td>Adopting Zebras</td>
135
- <td><a href=".">First name is a required field</a></td>
136
- <td style="color: gray;">/projects/pretty_face/features/adopting_zebras.feature</td>
137
- </tr>
138
- <tr>
139
- <td><img src="red_x.jpg" width="30"/></td>
140
- <td>Adopting Hippos</td>
141
- <td><a href=".">First name is a required field</a></td>
142
- <td style="color: gray;">/projects/pretty_face/features/adopting_hippos.feature</td>
143
- </tr>
144
- <tr>
145
- <td><img src="red_x.jpg" width="30"/></td>
146
- <td>Adopting Giraffes</td>
147
- <td><a href=".">First name is a required field</a></td>
148
- <td style="color: gray;">/projects/pretty_face/features/adopting_giraffes.feature</td>
149
- </tr>
150
- <tr>
151
- <td><img src="red_x.jpg" width="30"/></td>
152
- <td>Adopting Elephants</td>
153
- <td><a href=".">First name is a required field</a></td>
154
- <td style="color: gray;">/projects/pretty_face/features/adopting_elephants.feature</td>
155
- </tr>
156
- <tr>
157
- <td><img src="red_x.jpg" width="30"/></td>
158
- <td>Adopting Lions</td>
159
- <td><a href=".">First name is a required field</a></td>
160
- <td style="color: gray;">/projects/pretty_face/features/adopting_lions.feature</td>
161
- </tr>
162
- </table>
163
- </div>
164
-
165
- <div style="width: 100%; background-color: #4B7CAB; float: left; margin-left: -7px; margin-top: 25px; font-family: Verdana; color: white">Generated by PrettyFace</div>
166
- </body>
167
- </html>