guard-test 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +20 -12
- data/README.md +23 -45
- data/lib/guard/test/guard_test_runner.rb +48 -0
- data/lib/guard/test/{runners/default_test_unit_runner.rbc → guard_test_runner.rbc} +596 -568
- data/lib/guard/test/inspector.rbc +473 -161
- data/lib/guard/test/notifier.rb +30 -7
- data/lib/guard/test/notifier.rbc +680 -60
- data/lib/guard/test/runner.rb +43 -28
- data/lib/guard/test/runner.rbc +412 -703
- data/lib/guard/test/templates/Guardfile +1 -1
- data/lib/guard/test/version.rb +1 -1
- data/lib/guard/test/version.rbc +61 -11
- data/lib/guard/test.rb +1 -1
- data/lib/guard/test.rbc +245 -142
- metadata +14 -22
- data/lib/guard/test/result_helpers.rb +0 -28
- data/lib/guard/test/result_helpers.rbc +0 -798
- data/lib/guard/test/runners/default_guard_test_runner.rb +0 -64
- data/lib/guard/test/runners/default_guard_test_runner.rbc +0 -1442
- data/lib/guard/test/runners/fastfail_guard_test_runner.rb +0 -29
- data/lib/guard/test/runners/fastfail_guard_test_runner.rbc +0 -596
- data/lib/guard/test/runners/fastfail_test_unit_runner.rbc +0 -562
- data/lib/guard/test/ui.rb +0 -38
- data/lib/guard/test/ui.rbc +0 -1053
@@ -1,562 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
10937318184790222022
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
82
|
13
|
-
5
|
14
|
-
45
|
15
|
-
0
|
16
|
-
1
|
17
|
-
65
|
18
|
-
49
|
19
|
-
2
|
20
|
-
0
|
21
|
-
49
|
22
|
-
3
|
23
|
-
1
|
24
|
-
47
|
25
|
-
101
|
26
|
-
4
|
27
|
-
7
|
28
|
-
5
|
29
|
-
63
|
30
|
-
2
|
31
|
-
47
|
32
|
-
49
|
33
|
-
6
|
34
|
-
1
|
35
|
-
15
|
36
|
-
99
|
37
|
-
7
|
38
|
-
7
|
39
|
-
45
|
40
|
-
8
|
41
|
-
9
|
42
|
-
65
|
43
|
-
49
|
44
|
-
10
|
45
|
-
3
|
46
|
-
13
|
47
|
-
99
|
48
|
-
12
|
49
|
-
7
|
50
|
-
11
|
51
|
-
12
|
52
|
-
7
|
53
|
-
12
|
54
|
-
12
|
55
|
-
65
|
56
|
-
12
|
57
|
-
49
|
58
|
-
13
|
59
|
-
4
|
60
|
-
15
|
61
|
-
49
|
62
|
-
11
|
63
|
-
0
|
64
|
-
15
|
65
|
-
45
|
66
|
-
14
|
67
|
-
15
|
68
|
-
43
|
69
|
-
16
|
70
|
-
43
|
71
|
-
17
|
72
|
-
43
|
73
|
-
18
|
74
|
-
7
|
75
|
-
19
|
76
|
-
64
|
77
|
-
45
|
78
|
-
20
|
79
|
-
21
|
80
|
-
56
|
81
|
-
22
|
82
|
-
50
|
83
|
-
23
|
84
|
-
0
|
85
|
-
13
|
86
|
-
18
|
87
|
-
3
|
88
|
-
49
|
89
|
-
24
|
90
|
-
2
|
91
|
-
15
|
92
|
-
15
|
93
|
-
2
|
94
|
-
11
|
95
|
-
I
|
96
|
-
6
|
97
|
-
I
|
98
|
-
0
|
99
|
-
I
|
100
|
-
0
|
101
|
-
I
|
102
|
-
0
|
103
|
-
n
|
104
|
-
p
|
105
|
-
25
|
106
|
-
x
|
107
|
-
4
|
108
|
-
File
|
109
|
-
n
|
110
|
-
x
|
111
|
-
11
|
112
|
-
active_path
|
113
|
-
x
|
114
|
-
7
|
115
|
-
dirname
|
116
|
-
x
|
117
|
-
4
|
118
|
-
to_s
|
119
|
-
s
|
120
|
-
25
|
121
|
-
/default_test_unit_runner
|
122
|
-
x
|
123
|
-
7
|
124
|
-
require
|
125
|
-
x
|
126
|
-
27
|
127
|
-
FastfailGuardTestUnitRunner
|
128
|
-
x
|
129
|
-
22
|
130
|
-
DefaultGuardTestRunner
|
131
|
-
n
|
132
|
-
x
|
133
|
-
10
|
134
|
-
open_class
|
135
|
-
x
|
136
|
-
14
|
137
|
-
__class_init__
|
138
|
-
M
|
139
|
-
1
|
140
|
-
n
|
141
|
-
n
|
142
|
-
x
|
143
|
-
27
|
144
|
-
FastfailGuardTestUnitRunner
|
145
|
-
i
|
146
|
-
34
|
147
|
-
5
|
148
|
-
66
|
149
|
-
5
|
150
|
-
48
|
151
|
-
0
|
152
|
-
15
|
153
|
-
99
|
154
|
-
7
|
155
|
-
1
|
156
|
-
7
|
157
|
-
2
|
158
|
-
65
|
159
|
-
67
|
160
|
-
49
|
161
|
-
3
|
162
|
-
0
|
163
|
-
49
|
164
|
-
4
|
165
|
-
4
|
166
|
-
15
|
167
|
-
99
|
168
|
-
7
|
169
|
-
5
|
170
|
-
7
|
171
|
-
6
|
172
|
-
65
|
173
|
-
67
|
174
|
-
49
|
175
|
-
3
|
176
|
-
0
|
177
|
-
49
|
178
|
-
4
|
179
|
-
4
|
180
|
-
11
|
181
|
-
I
|
182
|
-
5
|
183
|
-
I
|
184
|
-
0
|
185
|
-
I
|
186
|
-
0
|
187
|
-
I
|
188
|
-
0
|
189
|
-
n
|
190
|
-
p
|
191
|
-
7
|
192
|
-
x
|
193
|
-
7
|
194
|
-
private
|
195
|
-
x
|
196
|
-
9
|
197
|
-
add_fault
|
198
|
-
M
|
199
|
-
1
|
200
|
-
n
|
201
|
-
n
|
202
|
-
x
|
203
|
-
9
|
204
|
-
add_fault
|
205
|
-
i
|
206
|
-
40
|
207
|
-
39
|
208
|
-
0
|
209
|
-
20
|
210
|
-
0
|
211
|
-
49
|
212
|
-
1
|
213
|
-
1
|
214
|
-
15
|
215
|
-
5
|
216
|
-
48
|
217
|
-
2
|
218
|
-
15
|
219
|
-
5
|
220
|
-
7
|
221
|
-
3
|
222
|
-
64
|
223
|
-
39
|
224
|
-
0
|
225
|
-
49
|
226
|
-
4
|
227
|
-
0
|
228
|
-
20
|
229
|
-
0
|
230
|
-
49
|
231
|
-
5
|
232
|
-
0
|
233
|
-
35
|
234
|
-
2
|
235
|
-
49
|
236
|
-
6
|
237
|
-
1
|
238
|
-
47
|
239
|
-
49
|
240
|
-
7
|
241
|
-
1
|
242
|
-
15
|
243
|
-
2
|
244
|
-
38
|
245
|
-
8
|
246
|
-
11
|
247
|
-
I
|
248
|
-
5
|
249
|
-
I
|
250
|
-
1
|
251
|
-
I
|
252
|
-
1
|
253
|
-
I
|
254
|
-
1
|
255
|
-
n
|
256
|
-
p
|
257
|
-
9
|
258
|
-
x
|
259
|
-
7
|
260
|
-
@faults
|
261
|
-
x
|
262
|
-
2
|
263
|
-
<<
|
264
|
-
x
|
265
|
-
2
|
266
|
-
nl
|
267
|
-
s
|
268
|
-
7
|
269
|
-
%3d) %s
|
270
|
-
x
|
271
|
-
6
|
272
|
-
length
|
273
|
-
x
|
274
|
-
12
|
275
|
-
long_display
|
276
|
-
x
|
277
|
-
1
|
278
|
-
%
|
279
|
-
x
|
280
|
-
15
|
281
|
-
color_puts
|
282
|
-
x
|
283
|
-
18
|
284
|
-
@already_outputted
|
285
|
-
p
|
286
|
-
11
|
287
|
-
I
|
288
|
-
-1
|
289
|
-
I
|
290
|
-
b
|
291
|
-
I
|
292
|
-
0
|
293
|
-
I
|
294
|
-
c
|
295
|
-
I
|
296
|
-
8
|
297
|
-
I
|
298
|
-
d
|
299
|
-
I
|
300
|
-
c
|
301
|
-
I
|
302
|
-
e
|
303
|
-
I
|
304
|
-
24
|
305
|
-
I
|
306
|
-
f
|
307
|
-
I
|
308
|
-
28
|
309
|
-
x
|
310
|
-
102
|
311
|
-
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_test_unit_runner.rb
|
312
|
-
p
|
313
|
-
1
|
314
|
-
x
|
315
|
-
5
|
316
|
-
fault
|
317
|
-
x
|
318
|
-
17
|
319
|
-
method_visibility
|
320
|
-
x
|
321
|
-
15
|
322
|
-
add_defn_method
|
323
|
-
x
|
324
|
-
8
|
325
|
-
finished
|
326
|
-
M
|
327
|
-
1
|
328
|
-
n
|
329
|
-
n
|
330
|
-
x
|
331
|
-
8
|
332
|
-
finished
|
333
|
-
i
|
334
|
-
43
|
335
|
-
5
|
336
|
-
39
|
337
|
-
0
|
338
|
-
49
|
339
|
-
1
|
340
|
-
0
|
341
|
-
39
|
342
|
-
0
|
343
|
-
49
|
344
|
-
2
|
345
|
-
0
|
346
|
-
39
|
347
|
-
0
|
348
|
-
49
|
349
|
-
3
|
350
|
-
0
|
351
|
-
39
|
352
|
-
0
|
353
|
-
49
|
354
|
-
4
|
355
|
-
0
|
356
|
-
20
|
357
|
-
0
|
358
|
-
44
|
359
|
-
43
|
360
|
-
5
|
361
|
-
79
|
362
|
-
49
|
363
|
-
6
|
364
|
-
1
|
365
|
-
13
|
366
|
-
7
|
367
|
-
7
|
368
|
-
2
|
369
|
-
49
|
370
|
-
8
|
371
|
-
2
|
372
|
-
15
|
373
|
-
47
|
374
|
-
49
|
375
|
-
9
|
376
|
-
6
|
377
|
-
11
|
378
|
-
I
|
379
|
-
b
|
380
|
-
I
|
381
|
-
1
|
382
|
-
I
|
383
|
-
1
|
384
|
-
I
|
385
|
-
1
|
386
|
-
n
|
387
|
-
p
|
388
|
-
10
|
389
|
-
x
|
390
|
-
7
|
391
|
-
@result
|
392
|
-
x
|
393
|
-
9
|
394
|
-
run_count
|
395
|
-
x
|
396
|
-
15
|
397
|
-
assertion_count
|
398
|
-
x
|
399
|
-
13
|
400
|
-
failure_count
|
401
|
-
x
|
402
|
-
11
|
403
|
-
error_count
|
404
|
-
x
|
405
|
-
4
|
406
|
-
Hash
|
407
|
-
x
|
408
|
-
16
|
409
|
-
new_from_literal
|
410
|
-
x
|
411
|
-
13
|
412
|
-
with_duration
|
413
|
-
x
|
414
|
-
3
|
415
|
-
[]=
|
416
|
-
x
|
417
|
-
24
|
418
|
-
print_and_notify_results
|
419
|
-
p
|
420
|
-
5
|
421
|
-
I
|
422
|
-
-1
|
423
|
-
I
|
424
|
-
12
|
425
|
-
I
|
426
|
-
0
|
427
|
-
I
|
428
|
-
13
|
429
|
-
I
|
430
|
-
2b
|
431
|
-
x
|
432
|
-
102
|
433
|
-
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_test_unit_runner.rb
|
434
|
-
p
|
435
|
-
1
|
436
|
-
x
|
437
|
-
12
|
438
|
-
elapsed_time
|
439
|
-
p
|
440
|
-
7
|
441
|
-
I
|
442
|
-
2
|
443
|
-
I
|
444
|
-
9
|
445
|
-
I
|
446
|
-
6
|
447
|
-
I
|
448
|
-
b
|
449
|
-
I
|
450
|
-
14
|
451
|
-
I
|
452
|
-
12
|
453
|
-
I
|
454
|
-
22
|
455
|
-
x
|
456
|
-
102
|
457
|
-
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_test_unit_runner.rb
|
458
|
-
p
|
459
|
-
0
|
460
|
-
x
|
461
|
-
13
|
462
|
-
attach_method
|
463
|
-
x
|
464
|
-
4
|
465
|
-
Test
|
466
|
-
n
|
467
|
-
x
|
468
|
-
4
|
469
|
-
Unit
|
470
|
-
x
|
471
|
-
10
|
472
|
-
AutoRunner
|
473
|
-
x
|
474
|
-
7
|
475
|
-
RUNNERS
|
476
|
-
s
|
477
|
-
14
|
478
|
-
guard-fastfail
|
479
|
-
x
|
480
|
-
4
|
481
|
-
Proc
|
482
|
-
n
|
483
|
-
M
|
484
|
-
1
|
485
|
-
p
|
486
|
-
2
|
487
|
-
x
|
488
|
-
9
|
489
|
-
for_block
|
490
|
-
t
|
491
|
-
n
|
492
|
-
x
|
493
|
-
9
|
494
|
-
__block__
|
495
|
-
i
|
496
|
-
8
|
497
|
-
57
|
498
|
-
19
|
499
|
-
0
|
500
|
-
15
|
501
|
-
45
|
502
|
-
0
|
503
|
-
1
|
504
|
-
11
|
505
|
-
I
|
506
|
-
3
|
507
|
-
I
|
508
|
-
1
|
509
|
-
I
|
510
|
-
1
|
511
|
-
I
|
512
|
-
1
|
513
|
-
n
|
514
|
-
p
|
515
|
-
2
|
516
|
-
x
|
517
|
-
27
|
518
|
-
FastfailGuardTestUnitRunner
|
519
|
-
n
|
520
|
-
p
|
521
|
-
3
|
522
|
-
I
|
523
|
-
0
|
524
|
-
I
|
525
|
-
18
|
526
|
-
I
|
527
|
-
8
|
528
|
-
x
|
529
|
-
102
|
530
|
-
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_test_unit_runner.rb
|
531
|
-
p
|
532
|
-
1
|
533
|
-
x
|
534
|
-
1
|
535
|
-
r
|
536
|
-
x
|
537
|
-
3
|
538
|
-
new
|
539
|
-
x
|
540
|
-
3
|
541
|
-
[]=
|
542
|
-
p
|
543
|
-
7
|
544
|
-
I
|
545
|
-
0
|
546
|
-
I
|
547
|
-
1
|
548
|
-
I
|
549
|
-
17
|
550
|
-
I
|
551
|
-
7
|
552
|
-
I
|
553
|
-
34
|
554
|
-
I
|
555
|
-
18
|
556
|
-
I
|
557
|
-
52
|
558
|
-
x
|
559
|
-
102
|
560
|
-
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_test_unit_runner.rb
|
561
|
-
p
|
562
|
-
0
|
data/lib/guard/test/ui.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'guard/test/result_helpers'
|
3
|
-
|
4
|
-
module Guard
|
5
|
-
module TestUI
|
6
|
-
|
7
|
-
COLOR_CODES = { :pass => ';32', :failure => ';31', :error => ';33', :reset => '' }
|
8
|
-
|
9
|
-
class << self
|
10
|
-
def results(result, elapsed_time, options={})
|
11
|
-
color_puts(::Guard::TestResultHelpers.duration(elapsed_time, options))
|
12
|
-
|
13
|
-
color = (result.failure_count > 0 ? :failure : (result.error_count > 0 ? :error : :pass))
|
14
|
-
color_puts(::Guard::TestResultHelpers.summary(result), :color => color)
|
15
|
-
end
|
16
|
-
|
17
|
-
def color_print(text, options={})
|
18
|
-
opts = { :color => :reset }.merge(options)
|
19
|
-
|
20
|
-
$stdout.write("%s%s%s" % [color_sequence(opts[:color]), text, color_sequence(:reset)])
|
21
|
-
$stdout.flush
|
22
|
-
true
|
23
|
-
end
|
24
|
-
|
25
|
-
def color_puts(text, options={})
|
26
|
-
color_print(text, options)
|
27
|
-
$stdout.puts
|
28
|
-
end
|
29
|
-
|
30
|
-
private
|
31
|
-
|
32
|
-
def color_sequence(color_name)
|
33
|
-
"\e[0#{COLOR_CODES[color_name.to_sym]}m"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
end
|