guard-test 0.3.0.rc4 → 0.3.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -10
- data/lib/guard/test/inspector.rb +6 -5
- data/lib/guard/test/inspector.rbc +109 -145
- data/lib/guard/test/runner.rb +2 -3
- data/lib/guard/test/runner.rbc +87 -104
- data/lib/guard/test/runners/default_guard_test_runner.rb +2 -2
- data/lib/guard/test/runners/default_guard_test_runner.rbc +31 -70
- data/lib/guard/test/runners/fastfail_guard_test_runner.rb +3 -2
- data/lib/guard/test/runners/fastfail_guard_test_runner.rbc +47 -75
- data/lib/guard/test/version.rb +1 -1
- data/lib/guard/test/version.rbc +1 -1
- data/lib/guard/test.rb +5 -2
- data/lib/guard/test.rbc +138 -86
- metadata +5 -3
@@ -9,7 +9,7 @@ x
|
|
9
9
|
10
|
10
10
|
__script__
|
11
11
|
i
|
12
|
-
|
12
|
+
112
|
13
13
|
99
|
14
14
|
43
|
15
15
|
0
|
@@ -112,26 +112,13 @@ i
|
|
112
112
|
18
|
113
113
|
43
|
114
114
|
27
|
115
|
-
43
|
116
|
-
28
|
117
115
|
7
|
118
|
-
|
119
|
-
64
|
120
|
-
45
|
121
|
-
30
|
122
|
-
31
|
116
|
+
28
|
123
117
|
56
|
124
|
-
|
118
|
+
29
|
125
119
|
50
|
126
|
-
|
127
|
-
|
128
|
-
13
|
129
|
-
18
|
130
|
-
3
|
131
|
-
49
|
132
|
-
34
|
133
|
-
2
|
134
|
-
15
|
120
|
+
30
|
121
|
+
1
|
135
122
|
15
|
136
123
|
2
|
137
124
|
11
|
@@ -145,7 +132,7 @@ I
|
|
145
132
|
0
|
146
133
|
n
|
147
134
|
p
|
148
|
-
|
135
|
+
31
|
149
136
|
x
|
150
137
|
7
|
151
138
|
Globals
|
@@ -922,60 +909,52 @@ x
|
|
922
909
|
8
|
923
910
|
finished
|
924
911
|
i
|
925
|
-
|
912
|
+
46
|
926
913
|
45
|
927
914
|
0
|
928
915
|
1
|
929
|
-
9
|
930
|
-
19
|
931
|
-
45
|
932
|
-
2
|
933
|
-
3
|
934
916
|
43
|
935
|
-
|
917
|
+
2
|
936
918
|
39
|
937
|
-
|
919
|
+
3
|
938
920
|
20
|
939
921
|
0
|
940
922
|
49
|
941
|
-
|
923
|
+
4
|
942
924
|
2
|
943
|
-
8
|
944
|
-
20
|
945
|
-
1
|
946
925
|
15
|
947
926
|
5
|
948
927
|
48
|
949
|
-
|
928
|
+
5
|
950
929
|
15
|
951
930
|
5
|
952
931
|
48
|
953
|
-
|
932
|
+
5
|
954
933
|
15
|
955
934
|
39
|
956
|
-
|
935
|
+
6
|
957
936
|
56
|
958
|
-
|
937
|
+
7
|
959
938
|
50
|
960
|
-
|
939
|
+
8
|
961
940
|
0
|
962
941
|
15
|
963
942
|
45
|
964
|
-
|
965
|
-
|
943
|
+
0
|
944
|
+
9
|
966
945
|
43
|
967
|
-
|
946
|
+
10
|
968
947
|
39
|
969
|
-
|
948
|
+
3
|
970
949
|
20
|
971
950
|
0
|
972
951
|
49
|
973
|
-
|
952
|
+
11
|
974
953
|
2
|
975
954
|
15
|
976
955
|
5
|
977
956
|
48
|
978
|
-
|
957
|
+
5
|
979
958
|
11
|
980
959
|
I
|
981
960
|
4
|
@@ -987,11 +966,7 @@ I
|
|
987
966
|
1
|
988
967
|
n
|
989
968
|
p
|
990
|
-
|
991
|
-
x
|
992
|
-
17
|
993
|
-
GUARD_TEST_NOTIFY
|
994
|
-
n
|
969
|
+
12
|
995
970
|
x
|
996
971
|
5
|
997
972
|
Guard
|
@@ -1176,7 +1151,7 @@ x
|
|
1176
1151
|
7
|
1177
1152
|
results
|
1178
1153
|
p
|
1179
|
-
|
1154
|
+
13
|
1180
1155
|
I
|
1181
1156
|
-1
|
1182
1157
|
I
|
@@ -1186,27 +1161,23 @@ I
|
|
1186
1161
|
I
|
1187
1162
|
30
|
1188
1163
|
I
|
1189
|
-
|
1190
|
-
I
|
1191
|
-
0
|
1192
|
-
I
|
1193
|
-
15
|
1164
|
+
d
|
1194
1165
|
I
|
1195
1166
|
31
|
1196
1167
|
I
|
1197
|
-
|
1168
|
+
15
|
1198
1169
|
I
|
1199
1170
|
32
|
1200
1171
|
I
|
1201
|
-
|
1172
|
+
1d
|
1202
1173
|
I
|
1203
1174
|
36
|
1204
1175
|
I
|
1205
|
-
|
1176
|
+
2a
|
1206
1177
|
I
|
1207
1178
|
37
|
1208
1179
|
I
|
1209
|
-
|
1180
|
+
2e
|
1210
1181
|
x
|
1211
1182
|
102
|
1212
1183
|
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/default_guard_test_runner.rb
|
@@ -1378,15 +1349,8 @@ x
|
|
1378
1349
|
10
|
1379
1350
|
AutoRunner
|
1380
1351
|
x
|
1381
|
-
7
|
1382
|
-
RUNNERS
|
1383
|
-
s
|
1384
1352
|
13
|
1385
1353
|
guard-default
|
1386
|
-
x
|
1387
|
-
4
|
1388
|
-
Proc
|
1389
|
-
n
|
1390
1354
|
M
|
1391
1355
|
1
|
1392
1356
|
p
|
@@ -1441,11 +1405,8 @@ x
|
|
1441
1405
|
1
|
1442
1406
|
r
|
1443
1407
|
x
|
1444
|
-
|
1445
|
-
|
1446
|
-
x
|
1447
|
-
3
|
1448
|
-
[]=
|
1408
|
+
15
|
1409
|
+
register_runner
|
1449
1410
|
p
|
1450
1411
|
13
|
1451
1412
|
I
|
@@ -1473,7 +1434,7 @@ I
|
|
1473
1434
|
I
|
1474
1435
|
40
|
1475
1436
|
I
|
1476
|
-
|
1437
|
+
70
|
1477
1438
|
x
|
1478
1439
|
102
|
1479
1440
|
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/default_guard_test_runner.rb
|
@@ -14,10 +14,11 @@ class FastfailGuardTestRunner < DefaultGuardTestRunner
|
|
14
14
|
nl
|
15
15
|
Guard::TestUI.color_print("%3d) %s" % [@faults.size, fault.long_display], :color => fault_color_name(fault))
|
16
16
|
nl
|
17
|
+
@was_faulty = true
|
17
18
|
end
|
18
19
|
|
19
20
|
def finished(elapsed_time)
|
20
|
-
Guard::TestNotifier.notify(@result, elapsed_time)
|
21
|
+
Guard::TestNotifier.notify(@result, elapsed_time)
|
21
22
|
nl;nl
|
22
23
|
Guard::TestUI.results(@result, elapsed_time)
|
23
24
|
nl
|
@@ -25,4 +26,4 @@ class FastfailGuardTestRunner < DefaultGuardTestRunner
|
|
25
26
|
|
26
27
|
end
|
27
28
|
|
28
|
-
Test::Unit::AutoRunner
|
29
|
+
Test::Unit::AutoRunner.register_runner(:"guard-fastfail") { |r| FastfailGuardTestRunner }
|
@@ -9,7 +9,7 @@ x
|
|
9
9
|
10
|
10
10
|
__script__
|
11
11
|
i
|
12
|
-
|
12
|
+
71
|
13
13
|
5
|
14
14
|
45
|
15
15
|
0
|
@@ -71,26 +71,13 @@ i
|
|
71
71
|
17
|
72
72
|
43
|
73
73
|
18
|
74
|
-
43
|
75
|
-
19
|
76
74
|
7
|
77
|
-
|
78
|
-
64
|
79
|
-
45
|
80
|
-
21
|
81
|
-
22
|
75
|
+
19
|
82
76
|
56
|
83
|
-
|
77
|
+
20
|
84
78
|
50
|
85
|
-
|
86
|
-
|
87
|
-
13
|
88
|
-
18
|
89
|
-
3
|
90
|
-
49
|
91
|
-
25
|
92
|
-
2
|
93
|
-
15
|
79
|
+
21
|
80
|
+
1
|
94
81
|
15
|
95
82
|
2
|
96
83
|
11
|
@@ -104,7 +91,7 @@ I
|
|
104
91
|
0
|
105
92
|
n
|
106
93
|
p
|
107
|
-
|
94
|
+
22
|
108
95
|
x
|
109
96
|
4
|
110
97
|
File
|
@@ -206,7 +193,7 @@ x
|
|
206
193
|
9
|
207
194
|
add_fault
|
208
195
|
i
|
209
|
-
|
196
|
+
68
|
210
197
|
39
|
211
198
|
0
|
212
199
|
20
|
@@ -270,6 +257,10 @@ i
|
|
270
257
|
5
|
271
258
|
48
|
272
259
|
2
|
260
|
+
15
|
261
|
+
2
|
262
|
+
38
|
263
|
+
16
|
273
264
|
11
|
274
265
|
I
|
275
266
|
8
|
@@ -281,7 +272,7 @@ I
|
|
281
272
|
1
|
282
273
|
n
|
283
274
|
p
|
284
|
-
|
275
|
+
17
|
285
276
|
x
|
286
277
|
7
|
287
278
|
@faults
|
@@ -328,8 +319,11 @@ x
|
|
328
319
|
x
|
329
320
|
11
|
330
321
|
color_print
|
331
|
-
|
322
|
+
x
|
332
323
|
11
|
324
|
+
@was_faulty
|
325
|
+
p
|
326
|
+
13
|
333
327
|
I
|
334
328
|
-1
|
335
329
|
I
|
@@ -352,6 +346,10 @@ I
|
|
352
346
|
10
|
353
347
|
I
|
354
348
|
40
|
349
|
+
I
|
350
|
+
11
|
351
|
+
I
|
352
|
+
44
|
355
353
|
x
|
356
354
|
103
|
357
355
|
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_guard_test_runner.rb
|
@@ -377,52 +375,44 @@ x
|
|
377
375
|
8
|
378
376
|
finished
|
379
377
|
i
|
380
|
-
|
378
|
+
38
|
381
379
|
45
|
382
380
|
0
|
383
381
|
1
|
384
|
-
9
|
385
|
-
19
|
386
|
-
45
|
387
|
-
2
|
388
|
-
3
|
389
382
|
43
|
390
|
-
|
383
|
+
2
|
391
384
|
39
|
392
|
-
|
385
|
+
3
|
393
386
|
20
|
394
387
|
0
|
395
388
|
49
|
396
|
-
|
389
|
+
4
|
397
390
|
2
|
398
|
-
8
|
399
|
-
20
|
400
|
-
1
|
401
391
|
15
|
402
392
|
5
|
403
393
|
48
|
404
|
-
|
394
|
+
5
|
405
395
|
15
|
406
396
|
5
|
407
397
|
48
|
408
|
-
|
398
|
+
5
|
409
399
|
15
|
410
400
|
45
|
411
|
-
|
412
|
-
|
401
|
+
0
|
402
|
+
6
|
413
403
|
43
|
414
|
-
|
404
|
+
7
|
415
405
|
39
|
416
|
-
|
406
|
+
3
|
417
407
|
20
|
418
408
|
0
|
419
409
|
49
|
420
|
-
|
410
|
+
8
|
421
411
|
2
|
422
412
|
15
|
423
413
|
5
|
424
414
|
48
|
425
|
-
|
415
|
+
5
|
426
416
|
11
|
427
417
|
I
|
428
418
|
4
|
@@ -434,11 +424,7 @@ I
|
|
434
424
|
1
|
435
425
|
n
|
436
426
|
p
|
437
|
-
|
438
|
-
x
|
439
|
-
17
|
440
|
-
GUARD_TEST_NOTIFY
|
441
|
-
n
|
427
|
+
9
|
442
428
|
x
|
443
429
|
5
|
444
430
|
Guard
|
@@ -463,33 +449,29 @@ x
|
|
463
449
|
7
|
464
450
|
results
|
465
451
|
p
|
466
|
-
|
452
|
+
11
|
467
453
|
I
|
468
454
|
-1
|
469
455
|
I
|
470
|
-
13
|
471
|
-
I
|
472
|
-
0
|
473
|
-
I
|
474
|
-
14
|
475
|
-
I
|
476
456
|
14
|
477
457
|
I
|
478
458
|
0
|
479
459
|
I
|
480
460
|
15
|
481
461
|
I
|
482
|
-
|
483
|
-
I
|
484
|
-
1d
|
462
|
+
d
|
485
463
|
I
|
486
464
|
16
|
487
465
|
I
|
488
|
-
|
466
|
+
15
|
489
467
|
I
|
490
468
|
17
|
491
469
|
I
|
492
|
-
|
470
|
+
22
|
471
|
+
I
|
472
|
+
18
|
473
|
+
I
|
474
|
+
26
|
493
475
|
x
|
494
476
|
103
|
495
477
|
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_guard_test_runner.rb
|
@@ -511,7 +493,7 @@ c
|
|
511
493
|
I
|
512
494
|
14
|
513
495
|
I
|
514
|
-
|
496
|
+
14
|
515
497
|
I
|
516
498
|
22
|
517
499
|
x
|
@@ -533,15 +515,8 @@ x
|
|
533
515
|
10
|
534
516
|
AutoRunner
|
535
517
|
x
|
536
|
-
7
|
537
|
-
RUNNERS
|
538
|
-
s
|
539
518
|
14
|
540
519
|
guard-fastfail
|
541
|
-
x
|
542
|
-
4
|
543
|
-
Proc
|
544
|
-
n
|
545
520
|
M
|
546
521
|
1
|
547
522
|
p
|
@@ -584,7 +559,7 @@ p
|
|
584
559
|
I
|
585
560
|
0
|
586
561
|
I
|
587
|
-
|
562
|
+
1d
|
588
563
|
I
|
589
564
|
8
|
590
565
|
x
|
@@ -596,11 +571,8 @@ x
|
|
596
571
|
1
|
597
572
|
r
|
598
573
|
x
|
599
|
-
|
600
|
-
|
601
|
-
x
|
602
|
-
3
|
603
|
-
[]=
|
574
|
+
15
|
575
|
+
register_runner
|
604
576
|
p
|
605
577
|
7
|
606
578
|
I
|
@@ -614,9 +586,9 @@ I
|
|
614
586
|
I
|
615
587
|
36
|
616
588
|
I
|
617
|
-
|
589
|
+
1d
|
618
590
|
I
|
619
|
-
|
591
|
+
47
|
620
592
|
x
|
621
593
|
103
|
622
594
|
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/fastfail_guard_test_runner.rb
|
data/lib/guard/test/version.rb
CHANGED
data/lib/guard/test/version.rbc
CHANGED
data/lib/guard/test.rb
CHANGED
@@ -24,7 +24,7 @@ module Guard
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def start
|
27
|
-
::Guard::UI.info("Guard::Test #{TestVersion::VERSION} is running, with Test::Unit #{::Test::Unit::VERSION}!")
|
27
|
+
::Guard::UI.info("Guard::Test #{TestVersion::VERSION} is running, with Test::Unit #{::Test::Unit::VERSION}!", :reset => true)
|
28
28
|
run_all if @options[:all_on_start]
|
29
29
|
end
|
30
30
|
|
@@ -41,16 +41,19 @@ module Guard
|
|
41
41
|
|
42
42
|
def run_on_change(paths)
|
43
43
|
paths += @failed_paths if @options[:keep_failed]
|
44
|
-
|
44
|
+
paths = Inspector.clean(paths)
|
45
|
+
passed = @runner.run(paths)
|
45
46
|
|
46
47
|
if passed
|
47
48
|
# clean failed paths memory
|
48
49
|
@failed_paths -= paths if @options[:keep_failed]
|
50
|
+
|
49
51
|
# run all the tests if the changed tests failed, like autotest
|
50
52
|
run_all if @last_failed && @options[:all_after_pass]
|
51
53
|
else
|
52
54
|
# remember failed paths for the next change
|
53
55
|
@failed_paths += paths if @options[:keep_failed]
|
56
|
+
|
54
57
|
# track whether the changed tests failed for the next change
|
55
58
|
@last_failed = true
|
56
59
|
end
|