bauxite 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/doc/Bauxite/Action.html +6 -12
- data/doc/Bauxite/Application.html +32 -0
- data/doc/Bauxite/Context.html +95 -30
- data/doc/Bauxite/Loggers/CompositeLogger.html +21 -15
- data/doc/Bauxite/Loggers/FileLogger.html +45 -4
- data/doc/Bauxite/Loggers/HtmlLogger.html +23 -15
- data/doc/Bauxite/Loggers/XtermLogger.html +14 -4
- data/doc/README_md.html +13 -10
- data/doc/created.rid +10 -10
- data/doc/index.html +13 -10
- data/doc/js/search_index.js +1 -1
- data/doc/table_of_contents.html +62 -52
- data/lib/bauxite/actions/capture.rb +5 -13
- data/lib/bauxite/application.rb +62 -11
- data/lib/bauxite/core/context.rb +37 -2
- data/lib/bauxite/loggers/composite.rb +11 -7
- data/lib/bauxite/loggers/file.rb +11 -2
- data/lib/bauxite/loggers/html.rb +23 -11
- data/lib/bauxite/loggers/xterm.rb +8 -0
- data/lib/bauxite.rb +1 -1
- data/test/asserth.bxt +1 -1
- metadata +2 -2
@@ -102,8 +102,11 @@
|
|
102
102
|
|
103
103
|
<p>This composite logger forwards logging calls to each of its children.</p>
|
104
104
|
|
105
|
-
<p>
|
106
|
-
|
105
|
+
<p>Composite logger options include:</p>
|
106
|
+
<dl class="rdoc-list label-list"><dt><code>loggers</code>
|
107
|
+
<dd>
|
108
|
+
<p>A comma-separated list of logger names.</p>
|
109
|
+
</dd></dl>
|
107
110
|
|
108
111
|
</section>
|
109
112
|
|
@@ -130,7 +133,7 @@ names</p>
|
|
130
133
|
|
131
134
|
<div class="method-heading">
|
132
135
|
<span class="method-name">new</span><span
|
133
|
-
class="method-args">(options)</span>
|
136
|
+
class="method-args">(options, loggers = nil)</span>
|
134
137
|
|
135
138
|
<span class="method-click-advice">click to toggle source</span>
|
136
139
|
|
@@ -145,15 +148,18 @@ names</p>
|
|
145
148
|
|
146
149
|
|
147
150
|
<div class="method-source-code" id="new-source">
|
148
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line
|
149
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>)
|
150
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">
|
151
|
-
<span class="ruby-
|
152
|
-
<span class="ruby-string">"
|
153
|
-
|
151
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line 33</span>
|
152
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">loggers</span> = <span class="ruby-keyword">nil</span>)
|
153
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">loggers</span>
|
154
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:loggers</span>]
|
155
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Missing required logger option 'loggers'. "</span><span class="ruby-operator">+</span>
|
156
|
+
<span class="ruby-string">"The value of this option is a comma-separated list of valid loggers. "</span><span class="ruby-operator">+</span>
|
157
|
+
<span class="ruby-string">"For example loggers=xterm,file."</span>
|
158
|
+
<span class="ruby-keyword">end</span>
|
159
|
+
<span class="ruby-identifier">loggers</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:loggers</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">','</span>)
|
154
160
|
<span class="ruby-keyword">end</span>
|
155
161
|
|
156
|
-
<span class="ruby-ivar">@loggers</span> = <span class="ruby-identifier">
|
162
|
+
<span class="ruby-ivar">@loggers</span> = <span class="ruby-identifier">loggers</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span>
|
157
163
|
<span class="ruby-constant">Bauxite</span><span class="ruby-operator">::</span><span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_logger</span>(<span class="ruby-identifier">l</span>, <span class="ruby-identifier">options</span>)
|
158
164
|
<span class="ruby-keyword">end</span>
|
159
165
|
<span class="ruby-keyword">end</span></pre>
|
@@ -198,7 +204,7 @@ first logger.</p>
|
|
198
204
|
|
199
205
|
|
200
206
|
<div class="method-source-code" id="debug_prompt-source">
|
201
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line
|
207
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line 62</span>
|
202
208
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">debug_prompt</span>
|
203
209
|
<span class="ruby-ivar">@loggers</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">debug_prompt</span>
|
204
210
|
<span class="ruby-keyword">end</span></pre>
|
@@ -231,7 +237,7 @@ first logger.</p>
|
|
231
237
|
|
232
238
|
|
233
239
|
<div class="method-source-code" id="finalize-source">
|
234
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line
|
240
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line 81</span>
|
235
241
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">finalize</span>(<span class="ruby-identifier">ctx</span>)
|
236
242
|
<span class="ruby-ivar">@loggers</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">finalize</span>(<span class="ruby-identifier">ctx</span>) }
|
237
243
|
<span class="ruby-keyword">end</span></pre>
|
@@ -266,7 +272,7 @@ first logger.</p>
|
|
266
272
|
|
267
273
|
|
268
274
|
<div class="method-source-code" id="log-source">
|
269
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line
|
275
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line 75</span>
|
270
276
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">type</span> = <span class="ruby-value">:info</span>)
|
271
277
|
<span class="ruby-ivar">@loggers</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">log</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">type</span>) }
|
272
278
|
<span class="ruby-keyword">end</span></pre>
|
@@ -303,7 +309,7 @@ first logger.</p>
|
|
303
309
|
|
304
310
|
|
305
311
|
<div class="method-source-code" id="log_cmd-source">
|
306
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line
|
312
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line 54</span>
|
307
313
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">log_cmd</span>(<span class="ruby-identifier">action</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
308
314
|
<span class="ruby-identifier">_log_cmd_block</span>(<span class="ruby-ivar">@loggers</span>, <span class="ruby-identifier">action</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
309
315
|
<span class="ruby-keyword">end</span></pre>
|
@@ -336,7 +342,7 @@ first logger.</p>
|
|
336
342
|
|
337
343
|
|
338
344
|
<div class="method-source-code" id="progress-source">
|
339
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line
|
345
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/composite.rb, line 67</span>
|
340
346
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">progress</span>(<span class="ruby-identifier">value</span>)
|
341
347
|
<span class="ruby-ivar">@loggers</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">progress</span>(<span class="ruby-identifier">value</span>) }
|
342
348
|
<span class="ruby-keyword">end</span></pre>
|
@@ -75,6 +75,8 @@
|
|
75
75
|
|
76
76
|
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
77
77
|
|
78
|
+
<li ><a href="#method-i-finalize">#finalize</a>
|
79
|
+
|
78
80
|
<li ><a href="#method-i-log_cmd">#log_cmd</a>
|
79
81
|
|
80
82
|
</ul>
|
@@ -95,6 +97,12 @@
|
|
95
97
|
<p>This logger outputs the raw action text for every action executed to the
|
96
98
|
file specified in the <code>file</code> logger option.</p>
|
97
99
|
|
100
|
+
<p>File logger options include:</p>
|
101
|
+
<dl class="rdoc-list label-list"><dt><code>file</code>
|
102
|
+
<dd>
|
103
|
+
<p>Output file name.</p>
|
104
|
+
</dd></dl>
|
105
|
+
|
98
106
|
</section>
|
99
107
|
|
100
108
|
|
@@ -140,14 +148,14 @@ file specified in the <code>file</code> logger option.</p>
|
|
140
148
|
|
141
149
|
|
142
150
|
<div class="method-source-code" id="new-source">
|
143
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/file.rb, line
|
151
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/file.rb, line 35</span>
|
144
152
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>)
|
145
153
|
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">options</span>)
|
146
154
|
<span class="ruby-ivar">@file</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:file</span>]
|
147
155
|
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@file</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@file</span> <span class="ruby-operator">!=</span> <span class="ruby-string">''</span>
|
148
156
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"FileLogger configuration error: Undefined 'file' option."</span>
|
149
157
|
<span class="ruby-keyword">end</span>
|
150
|
-
<span class="ruby-
|
158
|
+
<span class="ruby-ivar">@lines</span> = []
|
151
159
|
<span class="ruby-keyword">end</span></pre>
|
152
160
|
</div>
|
153
161
|
|
@@ -167,6 +175,39 @@ file specified in the <code>file</code> logger option.</p>
|
|
167
175
|
</header>
|
168
176
|
|
169
177
|
|
178
|
+
<div id="method-i-finalize" class="method-detail ">
|
179
|
+
|
180
|
+
<div class="method-heading">
|
181
|
+
<span class="method-name">finalize</span><span
|
182
|
+
class="method-args">(ctx)</span>
|
183
|
+
|
184
|
+
<span class="method-click-advice">click to toggle source</span>
|
185
|
+
|
186
|
+
</div>
|
187
|
+
|
188
|
+
|
189
|
+
<div class="method-description">
|
190
|
+
|
191
|
+
<p>Completes the log execution.</p>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<div class="method-source-code" id="finalize-source">
|
197
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/file.rb, line 45</span>
|
198
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">finalize</span>(<span class="ruby-identifier">ctx</span>)
|
199
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">ctx</span>.<span class="ruby-identifier">output_path</span>(<span class="ruby-ivar">@file</span>), <span class="ruby-string">'w'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-ivar">@lines</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">"\n"</span>)) }
|
200
|
+
<span class="ruby-keyword">end</span></pre>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
170
211
|
<div id="method-i-log_cmd" class="method-detail ">
|
171
212
|
|
172
213
|
<div class="method-heading">
|
@@ -186,9 +227,9 @@ file specified in the <code>file</code> logger option.</p>
|
|
186
227
|
|
187
228
|
|
188
229
|
<div class="method-source-code" id="log_cmd-source">
|
189
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/file.rb, line
|
230
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/file.rb, line 50</span>
|
190
231
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">log_cmd</span>(<span class="ruby-identifier">action</span>)
|
191
|
-
<span class="ruby-
|
232
|
+
<span class="ruby-ivar">@lines</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">action</span>.<span class="ruby-identifier">text</span>
|
192
233
|
<span class="ruby-keyword">yield</span>
|
193
234
|
<span class="ruby-keyword">end</span></pre>
|
194
235
|
</div>
|
@@ -94,12 +94,22 @@
|
|
94
94
|
|
95
95
|
<section class="description">
|
96
96
|
|
97
|
-
<p>
|
98
|
-
|
99
|
-
<p>This logger
|
100
|
-
|
101
|
-
|
102
|
-
|
97
|
+
<p>Html logger.</p>
|
98
|
+
|
99
|
+
<p>This logger creates an HTML report of the test execution, linking to the
|
100
|
+
captures taken, if any.</p>
|
101
|
+
|
102
|
+
<p>Html logger options include:</p>
|
103
|
+
<dl class="rdoc-list label-list"><dt><code>html</code>
|
104
|
+
<dd>
|
105
|
+
<p>Name of the outpus HTML report file. If not present, defaults to
|
106
|
+
“test.html”.</p>
|
107
|
+
</dd><dt><code>html_package</code>
|
108
|
+
<dd>
|
109
|
+
<p>If set, embed captures into the HTML report file using the data URI scheme
|
110
|
+
(base64 encoded). The captures embedded into the report are deleted from
|
111
|
+
the filesystem.</p>
|
112
|
+
</dd></dl>
|
103
113
|
|
104
114
|
</section>
|
105
115
|
|
@@ -146,11 +156,12 @@ action succeeded, failed or was skipped).</p>
|
|
146
156
|
|
147
157
|
|
148
158
|
<div class="method-source-code" id="new-source">
|
149
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line
|
159
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line 42</span>
|
150
160
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>)
|
151
161
|
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">options</span>)
|
152
162
|
<span class="ruby-ivar">@data</span> = []
|
153
163
|
<span class="ruby-ivar">@file</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:html</span>] <span class="ruby-operator">||</span> <span class="ruby-string">'test.html'</span>
|
164
|
+
<span class="ruby-ivar">@imgs</span> = []
|
154
165
|
<span class="ruby-keyword">end</span></pre>
|
155
166
|
</div>
|
156
167
|
|
@@ -189,7 +200,7 @@ action succeeded, failed or was skipped).</p>
|
|
189
200
|
|
190
201
|
|
191
202
|
<div class="method-source-code" id="finalize-source">
|
192
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line
|
203
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line 90</span>
|
193
204
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">finalize</span>(<span class="ruby-identifier">ctx</span>)
|
194
205
|
<span class="ruby-identifier">output</span> = <span class="ruby-identifier">ctx</span>.<span class="ruby-identifier">variables</span>[<span class="ruby-string">'__OUTPUT__'</span>] <span class="ruby-operator">||</span> <span class="ruby-string">''</span>
|
195
206
|
|
@@ -270,12 +281,9 @@ action succeeded, failed or was skipped).</p>
|
|
270
281
|
<span class="ruby-identifier">html</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"
|
271
282
|
</body>
|
272
283
|
</html>"</span>
|
273
|
-
<span class="ruby-identifier">file</span> = <span class="ruby-ivar">@file</span>
|
274
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">output</span> <span class="ruby-operator">!=</span> <span class="ruby-string">''</span>
|
275
|
-
<span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">output</span>, <span class="ruby-identifier">file</span>)
|
276
|
-
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span> <span class="ruby-identifier">output</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">exists?</span> <span class="ruby-identifier">output</span>
|
277
|
-
<span class="ruby-keyword">end</span>
|
284
|
+
<span class="ruby-identifier">file</span> = <span class="ruby-identifier">ctx</span>.<span class="ruby-identifier">output_path</span>(<span class="ruby-ivar">@file</span>)
|
278
285
|
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>, <span class="ruby-string">'w'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">html</span> }
|
286
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@imgs</span>) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@imgs</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
279
287
|
<span class="ruby-keyword">end</span></pre>
|
280
288
|
</div>
|
281
289
|
|
@@ -309,7 +317,7 @@ action succeeded, failed or was skipped).</p>
|
|
309
317
|
|
310
318
|
|
311
319
|
<div class="method-source-code" id="log-source">
|
312
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line
|
320
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line 54</span>
|
313
321
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">type</span> = <span class="ruby-value">:info</span>)
|
314
322
|
<span class="ruby-keyword">end</span></pre>
|
315
323
|
</div>
|
@@ -341,7 +349,7 @@ action succeeded, failed or was skipped).</p>
|
|
341
349
|
|
342
350
|
|
343
351
|
<div class="method-source-code" id="log_cmd-source">
|
344
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line
|
352
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/html.rb, line 58</span>
|
345
353
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">log_cmd</span>(<span class="ruby-identifier">action</span>)
|
346
354
|
<span class="ruby-identifier">ret</span> = <span class="ruby-keyword">yield</span>
|
347
355
|
<span class="ruby-keyword">ensure</span>
|
@@ -98,6 +98,16 @@
|
|
98
98
|
|
99
99
|
<p>This logger outputs colorized lines using xterm (VT100/2) escape sequences.</p>
|
100
100
|
|
101
|
+
<p>XTerm logger options include:</p>
|
102
|
+
<dl class="rdoc-list label-list"><dt><code>nc</code>, <code>color</code>
|
103
|
+
<dd>
|
104
|
+
<p>If set to 'no', prints text without using colors. Note that
|
105
|
+
positional escape sequences will still be used to show progress. To disable
|
106
|
+
escape sequences completely, consider using the <a
|
107
|
+
href="TerminalLogger.html">Bauxite::Loggers::TerminalLogger</a> logger
|
108
|
+
instead.</p>
|
109
|
+
</dd></dl>
|
110
|
+
|
101
111
|
</section>
|
102
112
|
|
103
113
|
|
@@ -143,7 +153,7 @@
|
|
143
153
|
|
144
154
|
|
145
155
|
<div class="method-source-code" id="_fmt-source">
|
146
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line
|
156
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line 60</span>
|
147
157
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_fmt</span>(<span class="ruby-identifier">color</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">size</span> = <span class="ruby-value">0</span>)
|
148
158
|
<span class="ruby-identifier">text</span> = <span class="ruby-keyword">super</span>(<span class="ruby-identifier">color</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">size</span>)
|
149
159
|
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value">:nc</span>] <span class="ruby-keyword">or</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value">:color</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'no'</span>
|
@@ -181,7 +191,7 @@
|
|
181
191
|
|
182
192
|
|
183
193
|
<div class="method-source-code" id="_restore_cursor-source">
|
184
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line
|
194
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line 74</span>
|
185
195
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_restore_cursor</span>
|
186
196
|
<span class="ruby-identifier">print</span> <span class="ruby-string">"\033[u"</span>
|
187
197
|
<span class="ruby-keyword">true</span>
|
@@ -215,7 +225,7 @@
|
|
215
225
|
|
216
226
|
|
217
227
|
<div class="method-source-code" id="_save_cursor-source">
|
218
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line
|
228
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line 69</span>
|
219
229
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_save_cursor</span>
|
220
230
|
<span class="ruby-identifier">print</span> <span class="ruby-string">"\033[s"</span>
|
221
231
|
<span class="ruby-keyword">true</span>
|
@@ -254,7 +264,7 @@
|
|
254
264
|
|
255
265
|
|
256
266
|
<div class="method-source-code" id="_screen_width-source">
|
257
|
-
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line
|
267
|
+
<pre><span class="ruby-comment"># File lib/bauxite/loggers/xterm.rb, line 84</span>
|
258
268
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_screen_width</span>
|
259
269
|
<span class="ruby-keyword">if</span> <span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">'host_os'</span>] <span class="ruby-operator">=~</span>
|
260
270
|
<span class="ruby-regexp">/(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i</span>
|
data/doc/README_md.html
CHANGED
@@ -444,8 +444,7 @@ create an execute shell build task with the following text:</p>
|
|
444
444
|
|
445
445
|
<pre>#!/bin/bash
|
446
446
|
source ~/.rvm/scripts/rvm
|
447
|
-
bauxite -
|
448
|
-
-t 60 -o 240 --csv-summary "$WORKSPACE/test.csv" \
|
447
|
+
bauxite -t 60 -o 240 --jenkins "$WORKSPACE/test-results" \
|
449
448
|
"$WORKSPACE/test/suite.bxt"</pre>
|
450
449
|
|
451
450
|
<p>Assuming you have Selenium Server running on localhost and your workspace
|
@@ -461,12 +460,16 @@ test browse_around.bxt
|
|
461
460
|
test purchase_something.bxt
|
462
461
|
# more tests here...</pre>
|
463
462
|
|
464
|
-
<p>Note the <code>--
|
465
|
-
option
|
466
|
-
<code>
|
467
|
-
|
468
|
-
|
469
|
-
|
463
|
+
<p>Note the <code>--jenkins</code> option in the configuration above. That
|
464
|
+
option sets the default configuration arguments for Jenkins integration.
|
465
|
+
For more details on the <code>bauxite</code> command-line arguments refer
|
466
|
+
to the <a
|
467
|
+
href="http://pzavolinsky.github.io/bauxite/Bauxite/Application.html">RDoc
|
468
|
+
documentation</a>.</p>
|
469
|
+
|
470
|
+
<p>I won't go into the details of configuring the Jenkins publishing
|
471
|
+
plugins to print <a href="Bauxite.html">Bauxite</a> test results, but
|
472
|
+
instead here is a fragment of a possible Jenkins <code>config.xml</code>:</p>
|
470
473
|
|
471
474
|
<pre><publishers>
|
472
475
|
...
|
@@ -477,7 +480,7 @@ href="Bauxite.html">Bauxite</a> test results:</p>
|
|
477
480
|
<yaxis>Number of tests</yaxis>
|
478
481
|
<series>
|
479
482
|
<hudson.plugins.plot.CSVSeries>
|
480
|
-
<file>test.csv</file>
|
483
|
+
<file>test-results/summary.csv</file>
|
481
484
|
<label></label>
|
482
485
|
<fileType>csv</fileType>
|
483
486
|
<strExclusionSet>
|
@@ -503,7 +506,7 @@ href="Bauxite.html">Bauxite</a> test results:</p>
|
|
503
506
|
<yaxis>Test time (s)</yaxis>
|
504
507
|
<series>
|
505
508
|
<hudson.plugins.plot.CSVSeries>
|
506
|
-
<file>test.csv</file>
|
509
|
+
<file>test-results/summary.csv</file>
|
507
510
|
<label></label>
|
508
511
|
<fileType>csv</fileType>
|
509
512
|
<strExclusionSet>
|
data/doc/created.rid
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
README.md
|
1
|
+
Sun, 09 Feb 2014 21:18:47 -0300
|
2
|
+
README.md Sun, 09 Feb 2014 20:55:37 -0300
|
3
3
|
lib/bauxite/actions/break.rb Mon, 27 Jan 2014 20:58:50 -0300
|
4
|
-
lib/bauxite/actions/asserth.rb
|
4
|
+
lib/bauxite/actions/asserth.rb Sun, 09 Feb 2014 18:41:12 -0300
|
5
5
|
lib/bauxite/actions/assert.rb Mon, 27 Jan 2014 20:58:50 -0300
|
6
6
|
lib/bauxite/actions/wait.rb Mon, 27 Jan 2014 20:58:50 -0300
|
7
7
|
lib/bauxite/actions/assertv.rb Mon, 27 Jan 2014 20:58:50 -0300
|
@@ -13,7 +13,7 @@ lib/bauxite/actions/assertw.rb Thu, 06 Feb 2014 19:25:05 -0300
|
|
13
13
|
lib/bauxite/actions/doif.rb Tue, 04 Feb 2014 19:42:30 -0300
|
14
14
|
lib/bauxite/actions/ruby.rb Mon, 27 Jan 2014 20:58:50 -0300
|
15
15
|
lib/bauxite/actions/echo.rb Mon, 27 Jan 2014 20:58:50 -0300
|
16
|
-
lib/bauxite/actions/capture.rb
|
16
|
+
lib/bauxite/actions/capture.rb Sun, 09 Feb 2014 20:56:49 -0300
|
17
17
|
lib/bauxite/actions/js.rb Mon, 27 Jan 2014 20:58:50 -0300
|
18
18
|
lib/bauxite/actions/replace.rb Mon, 27 Jan 2014 20:58:50 -0300
|
19
19
|
lib/bauxite/actions/write.rb Mon, 27 Jan 2014 20:58:50 -0300
|
@@ -34,10 +34,10 @@ lib/bauxite/actions/alias.rb Mon, 27 Jan 2014 20:58:50 -0300
|
|
34
34
|
lib/bauxite/parsers/html.rb Thu, 06 Feb 2014 19:25:05 -0300
|
35
35
|
lib/bauxite/parsers/csv.rb Mon, 27 Jan 2014 20:58:50 -0300
|
36
36
|
lib/bauxite/parsers/default.rb Mon, 27 Jan 2014 20:58:50 -0300
|
37
|
-
lib/bauxite/application.rb
|
37
|
+
lib/bauxite/application.rb Sun, 09 Feb 2014 21:02:36 -0300
|
38
38
|
lib/bauxite/core/errors.rb Mon, 27 Jan 2014 20:58:50 -0300
|
39
39
|
lib/bauxite/core/selector.rb Tue, 28 Jan 2014 21:05:35 -0300
|
40
|
-
lib/bauxite/core/context.rb
|
40
|
+
lib/bauxite/core/context.rb Sun, 09 Feb 2014 21:04:35 -0300
|
41
41
|
lib/bauxite/core/logger.rb Tue, 04 Feb 2014 19:47:18 -0300
|
42
42
|
lib/bauxite/core/action.rb Tue, 04 Feb 2014 20:25:25 -0300
|
43
43
|
lib/bauxite/core/parser.rb Mon, 27 Jan 2014 20:58:50 -0300
|
@@ -47,8 +47,8 @@ lib/bauxite/selectors/window.rb Thu, 06 Feb 2014 20:27:10 -0300
|
|
47
47
|
lib/bauxite/selectors/smart.rb Fri, 31 Jan 2014 20:43:53 -0300
|
48
48
|
lib/bauxite/selectors/frame.rb Tue, 28 Jan 2014 19:38:40 -0300
|
49
49
|
lib/bauxite/loggers/terminal.rb Mon, 27 Jan 2014 20:58:50 -0300
|
50
|
-
lib/bauxite/loggers/file.rb
|
51
|
-
lib/bauxite/loggers/composite.rb
|
52
|
-
lib/bauxite/loggers/html.rb
|
50
|
+
lib/bauxite/loggers/file.rb Sun, 09 Feb 2014 21:17:29 -0300
|
51
|
+
lib/bauxite/loggers/composite.rb Sun, 09 Feb 2014 21:07:12 -0300
|
52
|
+
lib/bauxite/loggers/html.rb Sun, 09 Feb 2014 20:12:24 -0300
|
53
53
|
lib/bauxite/loggers/echo.rb Mon, 27 Jan 2014 20:58:50 -0300
|
54
|
-
lib/bauxite/loggers/xterm.rb
|
54
|
+
lib/bauxite/loggers/xterm.rb Sun, 09 Feb 2014 21:15:58 -0300
|
data/doc/index.html
CHANGED
@@ -476,8 +476,7 @@ create an execute shell build task with the following text:</p>
|
|
476
476
|
|
477
477
|
<pre>#!/bin/bash
|
478
478
|
source ~/.rvm/scripts/rvm
|
479
|
-
bauxite -
|
480
|
-
-t 60 -o 240 --csv-summary "$WORKSPACE/test.csv" \
|
479
|
+
bauxite -t 60 -o 240 --jenkins "$WORKSPACE/test-results" \
|
481
480
|
"$WORKSPACE/test/suite.bxt"</pre>
|
482
481
|
|
483
482
|
<p>Assuming you have Selenium Server running on localhost and your workspace
|
@@ -493,12 +492,16 @@ test browse_around.bxt
|
|
493
492
|
test purchase_something.bxt
|
494
493
|
# more tests here...</pre>
|
495
494
|
|
496
|
-
<p>Note the <code>--
|
497
|
-
option
|
498
|
-
<code>
|
499
|
-
|
500
|
-
|
501
|
-
|
495
|
+
<p>Note the <code>--jenkins</code> option in the configuration above. That
|
496
|
+
option sets the default configuration arguments for Jenkins integration.
|
497
|
+
For more details on the <code>bauxite</code> command-line arguments refer
|
498
|
+
to the <a
|
499
|
+
href="http://pzavolinsky.github.io/bauxite/Bauxite/Application.html">RDoc
|
500
|
+
documentation</a>.</p>
|
501
|
+
|
502
|
+
<p>I won't go into the details of configuring the Jenkins publishing
|
503
|
+
plugins to print <a href="Bauxite.html">Bauxite</a> test results, but
|
504
|
+
instead here is a fragment of a possible Jenkins <code>config.xml</code>:</p>
|
502
505
|
|
503
506
|
<pre><publishers>
|
504
507
|
...
|
@@ -509,7 +512,7 @@ href="Bauxite.html">Bauxite</a> test results:</p>
|
|
509
512
|
<yaxis>Number of tests</yaxis>
|
510
513
|
<series>
|
511
514
|
<hudson.plugins.plot.CSVSeries>
|
512
|
-
<file>test.csv</file>
|
515
|
+
<file>test-results/summary.csv</file>
|
513
516
|
<label></label>
|
514
517
|
<fileType>csv</fileType>
|
515
518
|
<strExclusionSet>
|
@@ -535,7 +538,7 @@ href="Bauxite.html">Bauxite</a> test results:</p>
|
|
535
538
|
<yaxis>Test time (s)</yaxis>
|
536
539
|
<series>
|
537
540
|
<hudson.plugins.plot.CSVSeries>
|
538
|
-
<file>test.csv</file>
|
541
|
+
<file>test-results/summary.csv</file>
|
539
542
|
<label></label>
|
540
543
|
<fileType>csv</fileType>
|
541
544
|
<strExclusionSet>
|