minitest-reporters-json_reporter 0.1.1 → 0.2.0

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/.rubocop.yml +9 -2
  4. data/Announcement.txt +131 -0
  5. data/README.md +80 -9
  6. data/Rakefile +11 -0
  7. data/doc/Minitest.html +126 -0
  8. data/doc/Minitest/Reporters.html +126 -0
  9. data/doc/Minitest/Reporters/ErrorDetail.html +390 -0
  10. data/doc/Minitest/Reporters/FailDetail.html +248 -0
  11. data/doc/Minitest/Reporters/FaultDetail.html +374 -0
  12. data/doc/Minitest/Reporters/JsonReporter.html +799 -0
  13. data/doc/Minitest/Reporters/PassDetail.html +235 -0
  14. data/doc/Minitest/Reporters/SkipDetail.html +220 -0
  15. data/doc/Minitest/Reporters/TestDetail.html +509 -0
  16. data/doc/_index.html +237 -0
  17. data/doc/class_list.html +58 -0
  18. data/doc/css/common.css +1 -0
  19. data/doc/css/full_list.css +57 -0
  20. data/doc/css/style.css +339 -0
  21. data/doc/file.README.html +142 -0
  22. data/doc/file_list.html +60 -0
  23. data/doc/frames.html +26 -0
  24. data/doc/index.html +142 -0
  25. data/doc/js/app.js +219 -0
  26. data/doc/js/full_list.js +181 -0
  27. data/doc/js/jquery.js +4 -0
  28. data/doc/method_list.html +195 -0
  29. data/doc/top-level-namespace.html +112 -0
  30. data/lib/minitest/reporters/json_reporter.rb +67 -62
  31. data/lib/minitest/reporters/json_reporter/error_detail.rb +25 -0
  32. data/lib/minitest/reporters/json_reporter/fail_detail.rb +16 -0
  33. data/lib/minitest/reporters/json_reporter/fault_detail.rb +39 -0
  34. data/lib/minitest/reporters/json_reporter/pass_detail.rb +16 -0
  35. data/lib/minitest/reporters/json_reporter/skip_detail.rb +16 -0
  36. data/lib/minitest/reporters/json_reporter/test_detail.rb +43 -0
  37. data/lib/minitest/reporters/json_reporter/version.rb +6 -6
  38. data/minitest-reporters-json_reporter.gemspec +3 -2
  39. metadata +35 -5
@@ -0,0 +1,374 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Minitest::Reporters::FaultDetail
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!Minitest/Reporters/FaultDetail.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (F)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../Minitest.html" title="Minitest (module)">Minitest</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Reporters.html" title="Minitest::Reporters (module)">Reporters</a></span></span>
36
+ &raquo;
37
+ <span class="title">FaultDetail</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: Minitest::Reporters::FaultDetail
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName"><span class='object_link'><a href="TestDetail.html" title="Minitest::Reporters::TestDetail (class)">TestDetail</a></span></span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next"><span class='object_link'><a href="TestDetail.html" title="Minitest::Reporters::TestDetail (class)">TestDetail</a></span></li>
82
+
83
+ <li class="next">Minitest::Reporters::FaultDetail</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/minitest/reporters/json_reporter/fault_detail.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>superclass for SkipDetail, FailDetail and ErrorDetail</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div><div id="subclasses">
116
+ <h2>Direct Known Subclasses</h2>
117
+ <p class="children"><span class='object_link'><a href="ErrorDetail.html" title="Minitest::Reporters::ErrorDetail (class)">ErrorDetail</a></span>, <span class='object_link'><a href="FailDetail.html" title="Minitest::Reporters::FailDetail (class)">FailDetail</a></span></p>
118
+ </div>
119
+
120
+
121
+
122
+
123
+
124
+
125
+ <h2>Instance Attribute Summary</h2>
126
+
127
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="TestDetail.html" title="Minitest::Reporters::TestDetail (class)">TestDetail</a></span></h3>
128
+ <p class="inherited"><span class='object_link'><a href="TestDetail.html#predicate-instance_method" title="Minitest::Reporters::TestDetail#predicate (method)">#predicate</a></span>, <span class='object_link'><a href="TestDetail.html#test_obj-instance_method" title="Minitest::Reporters::TestDetail#test_obj (method)">#test_obj</a></span></p>
129
+
130
+
131
+
132
+ <h2>
133
+ Instance Method Summary
134
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
135
+ </h2>
136
+
137
+ <ul class="summary">
138
+
139
+ <li class="public ">
140
+ <span class="summary_signature">
141
+
142
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (FaultDetail) <strong>initialize</strong>(test) </a>
143
+
144
+
145
+
146
+ </span>
147
+
148
+
149
+ <span class="note title constructor">constructor</span>
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <span class="summary_desc"><div class='inline'>
159
+ <p>A new instance of FaultDetail.</p>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#location-instance_method" title="#location (instance method)">- (Object) <strong>location</strong> </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <span class="summary_desc"><div class='inline'>
183
+ <p>returns string of found location of this test from backtrace.</p>
184
+ </div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#to_h-instance_method" title="#to_h (instance method)">- (Object) <strong>to_h</strong> </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+ <span class="summary_desc"><div class='inline'></div></span>
207
+
208
+ </li>
209
+
210
+
211
+ </ul>
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="TestDetail.html" title="Minitest::Reporters::TestDetail (class)">TestDetail</a></span></h3>
224
+ <p class="inherited"><span class='object_link'><a href="TestDetail.html#query-instance_method" title="Minitest::Reporters::TestDetail#query (method)">#query</a></span></p>
225
+ <div id="constructor_details" class="method_details_list">
226
+ <h2>Constructor Details</h2>
227
+
228
+ <div class="method_details first">
229
+ <h3 class="signature first" id="initialize-instance_method">
230
+
231
+ - (<tt><span class='object_link'><a href="" title="Minitest::Reporters::FaultDetail (class)">FaultDetail</a></span></tt>) <strong>initialize</strong>(test)
232
+
233
+
234
+
235
+
236
+
237
+ </h3><div class="docstring">
238
+ <div class="discussion">
239
+
240
+ <p>Returns a new instance of FaultDetail</p>
241
+
242
+
243
+ </div>
244
+ </div>
245
+ <div class="tags">
246
+
247
+
248
+ </div><table class="source_code">
249
+ <tr>
250
+ <td>
251
+ <pre class="lines">
252
+
253
+
254
+ 9
255
+ 10
256
+ 11
257
+ 12
258
+ 13</pre>
259
+ </td>
260
+ <td>
261
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter/fault_detail.rb', line 9</span>
262
+
263
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_test'>test</span><span class='rparen'>)</span>
264
+ <span class='comment'># Initialize for FaultDetail - sets up
265
+ </span> <span class='comment'># exception stuff: message, location and backtrace
266
+ </span> <span class='kw'>super</span> <span class='id identifier rubyid_test'>test</span>
267
+ <span class='kw'>end</span></pre>
268
+ </td>
269
+ </tr>
270
+ </table>
271
+ </div>
272
+
273
+ </div>
274
+
275
+
276
+ <div id="instance_method_details" class="method_details_list">
277
+ <h2>Instance Method Details</h2>
278
+
279
+
280
+ <div class="method_details first">
281
+ <h3 class="signature first" id="location-instance_method">
282
+
283
+ - (<tt>Object</tt>) <strong>location</strong>
284
+
285
+
286
+
287
+
288
+
289
+ </h3><div class="docstring">
290
+ <div class="discussion">
291
+
292
+ <p>returns string of found location of this test from backtrace</p>
293
+
294
+
295
+ </div>
296
+ </div>
297
+ <div class="tags">
298
+
299
+
300
+ </div><table class="source_code">
301
+ <tr>
302
+ <td>
303
+ <pre class="lines">
304
+
305
+
306
+ 16
307
+ 17
308
+ 18
309
+ 19
310
+ 20
311
+ 21</pre>
312
+ </td>
313
+ <td>
314
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter/fault_detail.rb', line 16</span>
315
+
316
+ <span class='kw'>def</span> <span class='id identifier rubyid_location'>location</span>
317
+ <span class='ivar'>@backtrace</span><span class='period'>.</span><span class='id identifier rubyid_reverse'>reverse</span><span class='period'>.</span><span class='id identifier rubyid_reduce'>reduce</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='op'>|</span>
318
+ <span class='kw'>break</span> <span class='id identifier rubyid_a'>a</span> <span class='kw'>if</span> <span class='id identifier rubyid_e'>e</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>in .(assert|refute|flunk|pass|fail|raise|must|wont)</span><span class='regexp_end'>/</span></span>
319
+ <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_sub'>sub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>:in .*$</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
320
+ <span class='kw'>end</span>
321
+ <span class='kw'>end</span></pre>
322
+ </td>
323
+ </tr>
324
+ </table>
325
+ </div>
326
+
327
+ <div class="method_details ">
328
+ <h3 class="signature " id="to_h-instance_method">
329
+
330
+ - (<tt>Object</tt>) <strong>to_h</strong>
331
+
332
+
333
+
334
+
335
+
336
+ </h3><table class="source_code">
337
+ <tr>
338
+ <td>
339
+ <pre class="lines">
340
+
341
+
342
+ 23
343
+ 24
344
+ 25
345
+ 26
346
+ 27
347
+ 28</pre>
348
+ </td>
349
+ <td>
350
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter/fault_detail.rb', line 23</span>
351
+
352
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
353
+ <span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='kw'>super</span>
354
+ <span class='id identifier rubyid_h'>h</span><span class='lbracket'>[</span><span class='symbol'>:message</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@message</span>
355
+ <span class='id identifier rubyid_h'>h</span><span class='lbracket'>[</span><span class='symbol'>:location</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_location'>location</span>
356
+ <span class='id identifier rubyid_h'>h</span>
357
+ <span class='kw'>end</span></pre>
358
+ </td>
359
+ </tr>
360
+ </table>
361
+ </div>
362
+
363
+ </div>
364
+
365
+ </div>
366
+
367
+ <div id="footer">
368
+ Generated on Thu Apr 21 20:48:52 2016 by
369
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
370
+ 0.8.7.6 (ruby-2.2.2).
371
+ </div>
372
+
373
+ </body>
374
+ </html>
@@ -0,0 +1,799 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Minitest::Reporters::JsonReporter
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!Minitest/Reporters/JsonReporter.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (J)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../Minitest.html" title="Minitest (module)">Minitest</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Reporters.html" title="Minitest::Reporters (module)">Reporters</a></span></span>
36
+ &raquo;
37
+ <span class="title">JsonReporter</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: Minitest::Reporters::JsonReporter
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">BaseReporter</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">BaseReporter</li>
82
+
83
+ <li class="next">Minitest::Reporters::JsonReporter</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/minitest/reporters/json_reporter.rb<span class="defines">,<br />
100
+ lib/minitest/reporters/json_reporter/version.rb</span>
101
+ </dd>
102
+
103
+ </dl>
104
+ <div class="clear"></div>
105
+
106
+ <h2>Overview</h2><div class="docstring">
107
+ <div class="discussion">
108
+
109
+ <p>Minitest Reporter that produces a JSON output for interface in IDEs,
110
+ editor.</p>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+
118
+ </div>
119
+ <h2>Constant Summary</h2>
120
+
121
+ <dl class="constants">
122
+
123
+ <dt id="VERSION-constant" class="">VERSION =
124
+
125
+ </dt>
126
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.2.0</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
127
+
128
+ </dl>
129
+
130
+
131
+
132
+
133
+
134
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
135
+ <ul class="summary">
136
+
137
+ <li class="public ">
138
+ <span class="summary_signature">
139
+
140
+ <a href="#storage-instance_method" title="#storage (instance method)">- (Object) <strong>storage</strong> </a>
141
+
142
+
143
+
144
+ </span>
145
+
146
+
147
+
148
+
149
+ <span class="note title readonly">readonly</span>
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <span class="summary_desc"><div class='inline'>
160
+ <p>Returns the value of attribute storage.</p>
161
+ </div></span>
162
+
163
+ </li>
164
+
165
+
166
+ </ul>
167
+
168
+
169
+
170
+
171
+
172
+ <h2>
173
+ Instance Method Summary
174
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
175
+ </h2>
176
+
177
+ <ul class="summary">
178
+
179
+ <li class="public ">
180
+ <span class="summary_signature">
181
+
182
+ <a href="#green%3F-instance_method" title="#green? (instance method)">- (Boolean) <strong>green?</strong> </a>
183
+
184
+
185
+
186
+ </span>
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+ <span class="summary_desc"><div class='inline'></div></span>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#init_status-instance_method" title="#init_status (instance method)">- (Object) <strong>init_status</strong> </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <span class="summary_desc"><div class='inline'></div></span>
219
+
220
+ </li>
221
+
222
+
223
+ <li class="public ">
224
+ <span class="summary_signature">
225
+
226
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (JsonReporter) <strong>initialize</strong>(my_options = {}) </a>
227
+
228
+
229
+
230
+ </span>
231
+
232
+
233
+ <span class="note title constructor">constructor</span>
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ <span class="summary_desc"><div class='inline'>
243
+ <p>A new instance of JsonReporter.</p>
244
+ </div></span>
245
+
246
+ </li>
247
+
248
+
249
+ <li class="public ">
250
+ <span class="summary_signature">
251
+
252
+ <a href="#metadata_h-instance_method" title="#metadata_h (instance method)">- (Object) <strong>metadata_h</strong> </a>
253
+
254
+
255
+
256
+ </span>
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+ <span class="summary_desc"><div class='inline'></div></span>
267
+
268
+ </li>
269
+
270
+
271
+ <li class="public ">
272
+ <span class="summary_signature">
273
+
274
+ <a href="#record-instance_method" title="#record (instance method)">- (Object) <strong>record</strong>(test) </a>
275
+
276
+
277
+
278
+ </span>
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+ <span class="summary_desc"><div class='inline'></div></span>
289
+
290
+ </li>
291
+
292
+
293
+ <li class="public ">
294
+ <span class="summary_signature">
295
+
296
+ <a href="#red%3F-instance_method" title="#red? (instance method)">- (Boolean) <strong>red?</strong> </a>
297
+
298
+
299
+
300
+ </span>
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <span class="summary_desc"><div class='inline'></div></span>
311
+
312
+ </li>
313
+
314
+
315
+ <li class="public ">
316
+ <span class="summary_signature">
317
+
318
+ <a href="#report-instance_method" title="#report (instance method)">- (Object) <strong>report</strong> </a>
319
+
320
+
321
+
322
+ </span>
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+ <span class="summary_desc"><div class='inline'></div></span>
333
+
334
+ </li>
335
+
336
+
337
+ <li class="public ">
338
+ <span class="summary_signature">
339
+
340
+ <a href="#yellow%3F-instance_method" title="#yellow? (instance method)">- (Boolean) <strong>yellow?</strong> </a>
341
+
342
+
343
+
344
+ </span>
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+ <span class="summary_desc"><div class='inline'></div></span>
355
+
356
+ </li>
357
+
358
+
359
+ </ul>
360
+
361
+
362
+
363
+ <div id="constructor_details" class="method_details_list">
364
+ <h2>Constructor Details</h2>
365
+
366
+ <div class="method_details first">
367
+ <h3 class="signature first" id="initialize-instance_method">
368
+
369
+ - (<tt><span class='object_link'><a href="" title="Minitest::Reporters::JsonReporter (class)">JsonReporter</a></span></tt>) <strong>initialize</strong>(my_options = {})
370
+
371
+
372
+
373
+
374
+
375
+ </h3><div class="docstring">
376
+ <div class="discussion">
377
+
378
+ <p>Returns a new instance of JsonReporter</p>
379
+
380
+
381
+ </div>
382
+ </div>
383
+ <div class="tags">
384
+
385
+
386
+ </div><table class="source_code">
387
+ <tr>
388
+ <td>
389
+ <pre class="lines">
390
+
391
+
392
+ 22
393
+ 23
394
+ 24
395
+ 25
396
+ 26
397
+ 27
398
+ 28
399
+ 29</pre>
400
+ </td>
401
+ <td>
402
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 22</span>
403
+
404
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_my_options'>my_options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
405
+ <span class='kw'>super</span> <span class='id identifier rubyid_my_options'>my_options</span>
406
+ <span class='ivar'>@skipped</span> <span class='op'>=</span> <span class='int'>0</span>
407
+ <span class='ivar'>@failed</span> <span class='op'>=</span> <span class='int'>0</span>
408
+ <span class='ivar'>@errored</span> <span class='op'>=</span> <span class='int'>0</span>
409
+ <span class='ivar'>@passed</span> <span class='op'>=</span> <span class='int'>0</span>
410
+ <span class='ivar'>@storage</span> <span class='op'>=</span> <span class='id identifier rubyid_init_status'>init_status</span>
411
+ <span class='kw'>end</span></pre>
412
+ </td>
413
+ </tr>
414
+ </table>
415
+ </div>
416
+
417
+ </div>
418
+
419
+ <div id="instance_attr_details" class="attr_details">
420
+ <h2>Instance Attribute Details</h2>
421
+
422
+
423
+ <span id=""></span>
424
+ <div class="method_details first">
425
+ <h3 class="signature first" id="storage-instance_method">
426
+
427
+ - (<tt>Object</tt>) <strong>storage</strong> <span class="extras">(readonly)</span>
428
+
429
+
430
+
431
+
432
+
433
+ </h3><div class="docstring">
434
+ <div class="discussion">
435
+
436
+ <p>Returns the value of attribute storage</p>
437
+
438
+
439
+ </div>
440
+ </div>
441
+ <div class="tags">
442
+
443
+
444
+ </div><table class="source_code">
445
+ <tr>
446
+ <td>
447
+ <pre class="lines">
448
+
449
+
450
+ 31
451
+ 32
452
+ 33</pre>
453
+ </td>
454
+ <td>
455
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 31</span>
456
+
457
+ <span class='kw'>def</span> <span class='id identifier rubyid_storage'>storage</span>
458
+ <span class='ivar'>@storage</span>
459
+ <span class='kw'>end</span></pre>
460
+ </td>
461
+ </tr>
462
+ </table>
463
+ </div>
464
+
465
+ </div>
466
+
467
+
468
+ <div id="instance_method_details" class="method_details_list">
469
+ <h2>Instance Method Details</h2>
470
+
471
+
472
+ <div class="method_details first">
473
+ <h3 class="signature first" id="green?-instance_method">
474
+
475
+ - (<tt>Boolean</tt>) <strong>green?</strong>
476
+
477
+
478
+
479
+
480
+
481
+ </h3><div class="docstring">
482
+ <div class="discussion">
483
+
484
+
485
+ </div>
486
+ </div>
487
+ <div class="tags">
488
+
489
+ <p class="tag_title">Returns:</p>
490
+ <ul class="return">
491
+
492
+ <li>
493
+
494
+
495
+ <span class='type'>(<tt>Boolean</tt>)</span>
496
+
497
+
498
+
499
+ </li>
500
+
501
+ </ul>
502
+
503
+ </div><table class="source_code">
504
+ <tr>
505
+ <td>
506
+ <pre class="lines">
507
+
508
+
509
+ 73
510
+ 74
511
+ 75</pre>
512
+ </td>
513
+ <td>
514
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 73</span>
515
+
516
+ <span class='kw'>def</span> <span class='id identifier rubyid_green?'>green?</span>
517
+ <span class='op'>!</span><span class='id identifier rubyid_red?'>red?</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_yellow?'>yellow?</span>
518
+ <span class='kw'>end</span></pre>
519
+ </td>
520
+ </tr>
521
+ </table>
522
+ </div>
523
+
524
+ <div class="method_details ">
525
+ <h3 class="signature " id="init_status-instance_method">
526
+
527
+ - (<tt>Object</tt>) <strong>init_status</strong>
528
+
529
+
530
+
531
+
532
+
533
+ </h3><table class="source_code">
534
+ <tr>
535
+ <td>
536
+ <pre class="lines">
537
+
538
+
539
+ 41
540
+ 42
541
+ 43
542
+ 44
543
+ 45
544
+ 46
545
+ 47
546
+ 48
547
+ 49</pre>
548
+ </td>
549
+ <td>
550
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 41</span>
551
+
552
+ <span class='kw'>def</span> <span class='id identifier rubyid_init_status'>init_status</span>
553
+ <span class='lbrace'>{</span>
554
+ <span class='label'>status:</span> <span class='id identifier rubyid_green_status'>green_status</span><span class='comma'>,</span>
555
+ <span class='label'>metadata:</span> <span class='id identifier rubyid_metadata_h'>metadata_h</span><span class='comma'>,</span>
556
+ <span class='label'>statistics:</span> <span class='id identifier rubyid_statistics_h'>statistics_h</span><span class='comma'>,</span>
557
+ <span class='label'>fails:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span>
558
+ <span class='label'>skips:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
559
+ <span class='rbrace'>}</span>
560
+ <span class='kw'>end</span></pre>
561
+ </td>
562
+ </tr>
563
+ </table>
564
+ </div>
565
+
566
+ <div class="method_details ">
567
+ <h3 class="signature " id="metadata_h-instance_method">
568
+
569
+ - (<tt>Object</tt>) <strong>metadata_h</strong>
570
+
571
+
572
+
573
+
574
+
575
+ </h3><table class="source_code">
576
+ <tr>
577
+ <td>
578
+ <pre class="lines">
579
+
580
+
581
+ 33
582
+ 34
583
+ 35
584
+ 36
585
+ 37
586
+ 38
587
+ 39</pre>
588
+ </td>
589
+ <td>
590
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 33</span>
591
+
592
+ <span class='kw'>def</span> <span class='id identifier rubyid_metadata_h'>metadata_h</span>
593
+ <span class='lbrace'>{</span>
594
+ <span class='label'>generated_by:</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span>
595
+ <span class='label'>version:</span> <span class='const'>Minitest</span><span class='op'>::</span><span class='const'>Reporters</span><span class='op'>::</span><span class='const'>JsonReporter</span><span class='op'>::</span><span class='const'>VERSION</span><span class='comma'>,</span>
596
+ <span class='label'>time:</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='period'>.</span><span class='id identifier rubyid_utc'>utc</span><span class='period'>.</span><span class='id identifier rubyid_iso8601'>iso8601</span>
597
+ <span class='rbrace'>}</span>
598
+ <span class='kw'>end</span></pre>
599
+ </td>
600
+ </tr>
601
+ </table>
602
+ </div>
603
+
604
+ <div class="method_details ">
605
+ <h3 class="signature " id="record-instance_method">
606
+
607
+ - (<tt>Object</tt>) <strong>record</strong>(test)
608
+
609
+
610
+
611
+
612
+
613
+ </h3><table class="source_code">
614
+ <tr>
615
+ <td>
616
+ <pre class="lines">
617
+
618
+
619
+ 51
620
+ 52
621
+ 53
622
+ 54</pre>
623
+ </td>
624
+ <td>
625
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 51</span>
626
+
627
+ <span class='kw'>def</span> <span class='id identifier rubyid_record'>record</span><span class='lparen'>(</span><span class='id identifier rubyid_test'>test</span><span class='rparen'>)</span>
628
+ <span class='kw'>super</span>
629
+ <span class='id identifier rubyid_skipped'>skipped</span><span class='lparen'>(</span><span class='id identifier rubyid_test'>test</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_errored'>errored</span><span class='lparen'>(</span><span class='id identifier rubyid_test'>test</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_failed'>failed</span><span class='lparen'>(</span><span class='id identifier rubyid_test'>test</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_passed'>passed</span><span class='lparen'>(</span><span class='id identifier rubyid_test'>test</span><span class='rparen'>)</span>
630
+ <span class='kw'>end</span></pre>
631
+ </td>
632
+ </tr>
633
+ </table>
634
+ </div>
635
+
636
+ <div class="method_details ">
637
+ <h3 class="signature " id="red?-instance_method">
638
+
639
+ - (<tt>Boolean</tt>) <strong>red?</strong>
640
+
641
+
642
+
643
+
644
+
645
+ </h3><div class="docstring">
646
+ <div class="discussion">
647
+
648
+
649
+ </div>
650
+ </div>
651
+ <div class="tags">
652
+
653
+ <p class="tag_title">Returns:</p>
654
+ <ul class="return">
655
+
656
+ <li>
657
+
658
+
659
+ <span class='type'>(<tt>Boolean</tt>)</span>
660
+
661
+
662
+
663
+ </li>
664
+
665
+ </ul>
666
+
667
+ </div><table class="source_code">
668
+ <tr>
669
+ <td>
670
+ <pre class="lines">
671
+
672
+
673
+ 77
674
+ 78
675
+ 79</pre>
676
+ </td>
677
+ <td>
678
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 77</span>
679
+
680
+ <span class='kw'>def</span> <span class='id identifier rubyid_red?'>red?</span>
681
+ <span class='ivar'>@failed</span> <span class='op'>+</span> <span class='ivar'>@errored</span> <span class='op'>&gt;</span> <span class='int'>0</span>
682
+ <span class='kw'>end</span></pre>
683
+ </td>
684
+ </tr>
685
+ </table>
686
+ </div>
687
+
688
+ <div class="method_details ">
689
+ <h3 class="signature " id="report-instance_method">
690
+
691
+ - (<tt>Object</tt>) <strong>report</strong>
692
+
693
+
694
+
695
+
696
+
697
+ </h3><table class="source_code">
698
+ <tr>
699
+ <td>
700
+ <pre class="lines">
701
+
702
+
703
+ 56
704
+ 57
705
+ 58
706
+ 59
707
+ 60
708
+ 61
709
+ 62
710
+ 63
711
+ 64
712
+ 65
713
+ 66
714
+ 67</pre>
715
+ </td>
716
+ <td>
717
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 56</span>
718
+
719
+ <span class='kw'>def</span> <span class='id identifier rubyid_report'>report</span>
720
+ <span class='kw'>super</span>
721
+
722
+ <span class='id identifier rubyid_set_status'>set_status</span> <span class='comment'># sets the success or failure and color in the status object
723
+ </span> <span class='comment'># options only exists once test run starts
724
+ </span> <span class='ivar'>@storage</span><span class='lbracket'>[</span><span class='symbol'>:metadata</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:options</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_transform_store'>transform_store</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
725
+ <span class='ivar'>@storage</span><span class='lbracket'>[</span><span class='symbol'>:statistics</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_statistics_h'>statistics_h</span>
726
+ <span class='comment'># Only add this if not already added and verbose option is set
727
+ </span> <span class='ivar'>@storage</span><span class='lbracket'>[</span><span class='symbol'>:passes</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:verbose</span><span class='rbracket'>]</span>
728
+
729
+ <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='ivar'>@storage</span><span class='rparen'>)</span><span class='rparen'>)</span>
730
+ <span class='kw'>end</span></pre>
731
+ </td>
732
+ </tr>
733
+ </table>
734
+ </div>
735
+
736
+ <div class="method_details ">
737
+ <h3 class="signature " id="yellow?-instance_method">
738
+
739
+ - (<tt>Boolean</tt>) <strong>yellow?</strong>
740
+
741
+
742
+
743
+
744
+
745
+ </h3><div class="docstring">
746
+ <div class="discussion">
747
+
748
+
749
+ </div>
750
+ </div>
751
+ <div class="tags">
752
+
753
+ <p class="tag_title">Returns:</p>
754
+ <ul class="return">
755
+
756
+ <li>
757
+
758
+
759
+ <span class='type'>(<tt>Boolean</tt>)</span>
760
+
761
+
762
+
763
+ </li>
764
+
765
+ </ul>
766
+
767
+ </div><table class="source_code">
768
+ <tr>
769
+ <td>
770
+ <pre class="lines">
771
+
772
+
773
+ 69
774
+ 70
775
+ 71</pre>
776
+ </td>
777
+ <td>
778
+ <pre class="code"><span class="info file"># File 'lib/minitest/reporters/json_reporter.rb', line 69</span>
779
+
780
+ <span class='kw'>def</span> <span class='id identifier rubyid_yellow?'>yellow?</span>
781
+ <span class='ivar'>@skipped</span> <span class='op'>&gt;</span> <span class='int'>0</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_red?'>red?</span>
782
+ <span class='kw'>end</span></pre>
783
+ </td>
784
+ </tr>
785
+ </table>
786
+ </div>
787
+
788
+ </div>
789
+
790
+ </div>
791
+
792
+ <div id="footer">
793
+ Generated on Thu Apr 21 20:48:52 2016 by
794
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
795
+ 0.8.7.6 (ruby-2.2.2).
796
+ </div>
797
+
798
+ </body>
799
+ </html>