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