guard-test 0.3.0.rc2 → 0.3.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -3
- data/lib/guard/test/runner.rb +18 -9
- data/lib/guard/test/runner.rbc +273 -135
- data/lib/guard/test/runners/default_guard_test_runner.rb +1 -1
- data/lib/guard/test/runners/default_guard_test_runner.rbc +50 -40
- data/lib/guard/test/runners/fastfail_guard_test_runner.rb +1 -1
- data/lib/guard/test/runners/fastfail_guard_test_runner.rbc +38 -28
- data/lib/guard/test/version.rb +1 -1
- data/lib/guard/test/version.rbc +1 -1
- data/lib/guard/test.rb +2 -12
- data/lib/guard/test.rbc +89 -197
- metadata +3 -35
@@ -9,7 +9,7 @@ x
|
|
9
9
|
10
|
10
10
|
__script__
|
11
11
|
i
|
12
|
-
|
12
|
+
125
|
13
13
|
99
|
14
14
|
43
|
15
15
|
0
|
@@ -24,106 +24,112 @@ i
|
|
24
24
|
7
|
25
25
|
5
|
26
26
|
64
|
27
|
+
45
|
28
|
+
3
|
29
|
+
6
|
27
30
|
65
|
28
31
|
49
|
29
|
-
|
32
|
+
7
|
30
33
|
0
|
31
34
|
49
|
32
|
-
|
35
|
+
8
|
36
|
+
1
|
37
|
+
49
|
38
|
+
9
|
33
39
|
2
|
34
40
|
49
|
35
|
-
|
41
|
+
10
|
36
42
|
1
|
37
43
|
15
|
38
44
|
5
|
39
45
|
7
|
40
|
-
|
46
|
+
11
|
41
47
|
64
|
42
48
|
47
|
43
49
|
49
|
44
|
-
|
50
|
+
12
|
45
51
|
1
|
46
52
|
15
|
47
53
|
5
|
48
54
|
7
|
49
|
-
|
55
|
+
13
|
50
56
|
64
|
51
57
|
47
|
52
58
|
49
|
53
|
-
|
59
|
+
12
|
54
60
|
1
|
55
61
|
15
|
56
62
|
5
|
57
63
|
7
|
58
|
-
|
64
|
+
14
|
59
65
|
64
|
60
66
|
47
|
61
67
|
49
|
62
|
-
|
68
|
+
12
|
63
69
|
1
|
64
70
|
15
|
65
71
|
99
|
66
72
|
7
|
67
|
-
13
|
68
|
-
45
|
69
|
-
14
|
70
73
|
15
|
71
|
-
|
74
|
+
45
|
72
75
|
16
|
73
|
-
43
|
74
76
|
17
|
75
77
|
43
|
76
78
|
18
|
77
79
|
43
|
78
80
|
19
|
81
|
+
43
|
82
|
+
20
|
83
|
+
43
|
84
|
+
21
|
79
85
|
65
|
80
86
|
49
|
81
|
-
|
87
|
+
22
|
82
88
|
3
|
83
89
|
13
|
84
90
|
99
|
85
91
|
12
|
86
92
|
7
|
87
|
-
|
93
|
+
23
|
88
94
|
12
|
89
95
|
7
|
90
|
-
|
96
|
+
24
|
91
97
|
12
|
92
98
|
65
|
93
99
|
12
|
94
100
|
49
|
95
|
-
|
101
|
+
25
|
96
102
|
4
|
97
103
|
15
|
98
104
|
49
|
99
|
-
|
105
|
+
23
|
100
106
|
0
|
101
107
|
15
|
102
108
|
45
|
103
|
-
14
|
104
|
-
24
|
105
|
-
43
|
106
109
|
16
|
110
|
+
26
|
107
111
|
43
|
108
|
-
|
112
|
+
18
|
109
113
|
43
|
110
|
-
26
|
111
|
-
7
|
112
114
|
27
|
113
|
-
|
114
|
-
45
|
115
|
+
43
|
115
116
|
28
|
117
|
+
7
|
116
118
|
29
|
117
|
-
|
119
|
+
64
|
120
|
+
45
|
118
121
|
30
|
119
|
-
50
|
120
122
|
31
|
123
|
+
56
|
124
|
+
32
|
125
|
+
50
|
126
|
+
33
|
121
127
|
0
|
122
128
|
13
|
123
129
|
18
|
124
130
|
3
|
125
131
|
49
|
126
|
-
|
132
|
+
34
|
127
133
|
2
|
128
134
|
15
|
129
135
|
15
|
@@ -139,7 +145,7 @@ I
|
|
139
145
|
0
|
140
146
|
n
|
141
147
|
p
|
142
|
-
|
148
|
+
35
|
143
149
|
x
|
144
150
|
7
|
145
151
|
Globals
|
@@ -154,12 +160,16 @@ x
|
|
154
160
|
File
|
155
161
|
n
|
156
162
|
s
|
157
|
-
|
158
|
-
|
163
|
+
9
|
164
|
+
../../../
|
165
|
+
n
|
159
166
|
x
|
160
167
|
11
|
161
168
|
active_path
|
162
169
|
x
|
170
|
+
7
|
171
|
+
dirname
|
172
|
+
x
|
163
173
|
11
|
164
174
|
expand_path
|
165
175
|
x
|
@@ -1443,27 +1453,27 @@ I
|
|
1443
1453
|
I
|
1444
1454
|
2
|
1445
1455
|
I
|
1446
|
-
|
1456
|
+
1f
|
1447
1457
|
I
|
1448
1458
|
4
|
1449
1459
|
I
|
1450
|
-
|
1460
|
+
28
|
1451
1461
|
I
|
1452
1462
|
5
|
1453
1463
|
I
|
1454
|
-
|
1464
|
+
31
|
1455
1465
|
I
|
1456
1466
|
6
|
1457
1467
|
I
|
1458
|
-
|
1468
|
+
3a
|
1459
1469
|
I
|
1460
1470
|
d
|
1461
1471
|
I
|
1462
|
-
|
1472
|
+
5f
|
1463
1473
|
I
|
1464
1474
|
40
|
1465
1475
|
I
|
1466
|
-
|
1476
|
+
7d
|
1467
1477
|
x
|
1468
1478
|
102
|
1469
1479
|
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/runners/default_guard_test_runner.rb
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
require File.expand_path('
|
2
|
+
require File.expand_path('default_guard_test_runner', File.dirname(__FILE__))
|
3
3
|
|
4
4
|
# This class is directly inspired by a blog post by Adam Sanderson:
|
5
5
|
# http://endofline.wordpress.com/2008/02/11/a-custom-testrunner-to-scratch-an-itch/
|
@@ -9,7 +9,7 @@ x
|
|
9
9
|
10
|
10
10
|
__script__
|
11
11
|
i
|
12
|
-
|
12
|
+
84
|
13
13
|
5
|
14
14
|
45
|
15
15
|
0
|
@@ -17,72 +17,78 @@ i
|
|
17
17
|
7
|
18
18
|
2
|
19
19
|
64
|
20
|
+
45
|
21
|
+
0
|
22
|
+
3
|
20
23
|
65
|
21
24
|
49
|
22
|
-
|
25
|
+
4
|
23
26
|
0
|
24
27
|
49
|
25
|
-
|
28
|
+
5
|
29
|
+
1
|
30
|
+
49
|
31
|
+
6
|
26
32
|
2
|
27
33
|
47
|
28
34
|
49
|
29
|
-
|
35
|
+
7
|
30
36
|
1
|
31
37
|
15
|
32
38
|
99
|
33
39
|
7
|
34
|
-
6
|
35
|
-
45
|
36
|
-
7
|
37
40
|
8
|
41
|
+
45
|
42
|
+
9
|
43
|
+
10
|
38
44
|
65
|
39
45
|
49
|
40
|
-
|
46
|
+
11
|
41
47
|
3
|
42
48
|
13
|
43
49
|
99
|
44
50
|
12
|
45
51
|
7
|
46
|
-
|
52
|
+
12
|
47
53
|
12
|
48
54
|
7
|
49
|
-
|
55
|
+
13
|
50
56
|
12
|
51
57
|
65
|
52
58
|
12
|
53
59
|
49
|
54
|
-
|
60
|
+
14
|
55
61
|
4
|
56
62
|
15
|
57
63
|
49
|
58
|
-
|
64
|
+
12
|
59
65
|
0
|
60
66
|
15
|
61
67
|
45
|
62
|
-
13
|
63
|
-
14
|
64
|
-
43
|
65
68
|
15
|
66
|
-
43
|
67
69
|
16
|
68
70
|
43
|
69
71
|
17
|
70
|
-
|
72
|
+
43
|
71
73
|
18
|
72
|
-
|
73
|
-
45
|
74
|
+
43
|
74
75
|
19
|
76
|
+
7
|
75
77
|
20
|
76
|
-
|
78
|
+
64
|
79
|
+
45
|
77
80
|
21
|
78
|
-
50
|
79
81
|
22
|
82
|
+
56
|
83
|
+
23
|
84
|
+
50
|
85
|
+
24
|
80
86
|
0
|
81
87
|
13
|
82
88
|
18
|
83
89
|
3
|
84
90
|
49
|
85
|
-
|
91
|
+
25
|
86
92
|
2
|
87
93
|
15
|
88
94
|
15
|
@@ -98,18 +104,22 @@ I
|
|
98
104
|
0
|
99
105
|
n
|
100
106
|
p
|
101
|
-
|
107
|
+
26
|
102
108
|
x
|
103
109
|
4
|
104
110
|
File
|
105
111
|
n
|
106
112
|
s
|
107
|
-
|
108
|
-
|
113
|
+
25
|
114
|
+
default_guard_test_runner
|
115
|
+
n
|
109
116
|
x
|
110
117
|
11
|
111
118
|
active_path
|
112
119
|
x
|
120
|
+
7
|
121
|
+
dirname
|
122
|
+
x
|
113
123
|
11
|
114
124
|
expand_path
|
115
125
|
x
|
@@ -598,15 +608,15 @@ I
|
|
598
608
|
I
|
599
609
|
2
|
600
610
|
I
|
601
|
-
|
611
|
+
19
|
602
612
|
I
|
603
613
|
8
|
604
614
|
I
|
605
|
-
|
615
|
+
36
|
606
616
|
I
|
607
617
|
1c
|
608
618
|
I
|
609
|
-
|
619
|
+
54
|
610
620
|
x
|
611
621
|
103
|
612
622
|
/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
@@ -1,17 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'guard'
|
3
3
|
require 'guard/guard'
|
4
|
-
|
5
|
-
# Thanks Aaron and Eric! http://redmine.ruby-lang.org/issues/show/3561
|
6
|
-
# Eric Hodel: "whenever you use a gem that replaces stdlib functionality you should use #gem before #require."
|
7
|
-
begin
|
8
|
-
require 'turn'
|
9
|
-
gem 'test-unit' if RUBY_VERSION >= '1.9'
|
10
|
-
rescue LoadError
|
11
|
-
gem 'test-unit'
|
12
|
-
end
|
13
|
-
|
14
|
-
require 'test/unit'
|
4
|
+
require 'test/unit/version'
|
15
5
|
|
16
6
|
module Guard
|
17
7
|
class Test < Guard
|
@@ -33,7 +23,7 @@ module Guard
|
|
33
23
|
end
|
34
24
|
|
35
25
|
def start
|
36
|
-
::Guard::UI.info("Guard::Test #{TestVersion::VERSION} is running!")
|
26
|
+
::Guard::UI.info("Guard::Test #{TestVersion::VERSION} is running, with Test::Unit #{::Test::Unit::VERSION}!")
|
37
27
|
run_all if @options[:all_on_start]
|
38
28
|
end
|
39
29
|
|