guard-test 0.2.0 → 0.3.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.md +128 -0
- data/lib/guard/test.rb +47 -9
- data/lib/guard/test.rbc +761 -157
- data/lib/guard/test/formatter.rbc +215 -91
- data/lib/guard/test/inspector.rb +13 -12
- data/lib/guard/test/inspector.rbc +126 -77
- data/lib/guard/test/notifier.rb +17 -0
- data/lib/guard/test/notifier.rbc +435 -0
- data/lib/guard/test/result_helpers.rb +28 -0
- data/lib/guard/test/result_helpers.rbc +798 -0
- data/lib/guard/test/runner.rb +46 -30
- data/lib/guard/test/runner.rbc +812 -494
- data/lib/guard/test/runners/{default_test_unit_runner.rb → default_guard_test_runner.rb} +19 -15
- data/lib/guard/test/runners/default_guard_test_runner.rbc +1471 -0
- data/lib/guard/test/runners/default_test_unit_runner.rbc +2 -2
- data/lib/guard/test/runners/{fastfail_test_unit_runner.rb → fastfail_guard_test_runner.rb} +11 -7
- data/lib/guard/test/runners/fastfail_guard_test_runner.rbc +614 -0
- data/lib/guard/test/runners/fastfail_test_unit_runner.rbc +1 -1
- data/lib/guard/test/templates/Guardfile +6 -6
- data/lib/guard/test/ui.rb +38 -0
- data/lib/guard/test/ui.rbc +1053 -0
- data/lib/guard/test/version.rb +2 -1
- data/lib/guard/test/version.rbc +6 -6
- metadata +49 -21
- data/README.rdoc +0 -89
- data/lib/guard/test/formatter.rb +0 -68
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'guard/notifier'
|
3
|
+
require 'guard/test/result_helpers'
|
4
|
+
|
5
|
+
module Guard
|
6
|
+
module TestNotifier
|
7
|
+
|
8
|
+
def self.notify(result, elapsed_time)
|
9
|
+
::Guard::Notifier.notify(
|
10
|
+
::Guard::TestResultHelpers.summary(result) + "\n\n" + ::Guard::TestResultHelpers.duration(elapsed_time),
|
11
|
+
:title => "Test::Unit results",
|
12
|
+
:image => result.failure_count > 0 ? :failed : :success
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,435 @@
|
|
1
|
+
!RBIX
|
2
|
+
17831730954501249321
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
46
|
13
|
+
5
|
14
|
+
7
|
15
|
+
0
|
16
|
+
64
|
17
|
+
47
|
18
|
+
49
|
19
|
+
1
|
20
|
+
1
|
21
|
+
15
|
22
|
+
5
|
23
|
+
7
|
24
|
+
2
|
25
|
+
64
|
26
|
+
47
|
27
|
+
49
|
28
|
+
1
|
29
|
+
1
|
30
|
+
15
|
31
|
+
99
|
32
|
+
7
|
33
|
+
3
|
34
|
+
65
|
35
|
+
49
|
36
|
+
4
|
37
|
+
2
|
38
|
+
13
|
39
|
+
99
|
40
|
+
12
|
41
|
+
7
|
42
|
+
5
|
43
|
+
12
|
44
|
+
7
|
45
|
+
6
|
46
|
+
12
|
47
|
+
65
|
48
|
+
12
|
49
|
+
49
|
50
|
+
7
|
51
|
+
4
|
52
|
+
15
|
53
|
+
49
|
54
|
+
5
|
55
|
+
0
|
56
|
+
15
|
57
|
+
2
|
58
|
+
11
|
59
|
+
I
|
60
|
+
6
|
61
|
+
I
|
62
|
+
0
|
63
|
+
I
|
64
|
+
0
|
65
|
+
I
|
66
|
+
0
|
67
|
+
n
|
68
|
+
p
|
69
|
+
8
|
70
|
+
s
|
71
|
+
14
|
72
|
+
guard/notifier
|
73
|
+
x
|
74
|
+
7
|
75
|
+
require
|
76
|
+
s
|
77
|
+
25
|
78
|
+
guard/test/result_helpers
|
79
|
+
x
|
80
|
+
5
|
81
|
+
Guard
|
82
|
+
x
|
83
|
+
11
|
84
|
+
open_module
|
85
|
+
x
|
86
|
+
15
|
87
|
+
__module_init__
|
88
|
+
M
|
89
|
+
1
|
90
|
+
n
|
91
|
+
n
|
92
|
+
x
|
93
|
+
5
|
94
|
+
Guard
|
95
|
+
i
|
96
|
+
28
|
97
|
+
5
|
98
|
+
66
|
99
|
+
99
|
100
|
+
7
|
101
|
+
0
|
102
|
+
65
|
103
|
+
49
|
104
|
+
1
|
105
|
+
2
|
106
|
+
13
|
107
|
+
99
|
108
|
+
12
|
109
|
+
7
|
110
|
+
2
|
111
|
+
12
|
112
|
+
7
|
113
|
+
3
|
114
|
+
12
|
115
|
+
65
|
116
|
+
12
|
117
|
+
49
|
118
|
+
4
|
119
|
+
4
|
120
|
+
15
|
121
|
+
49
|
122
|
+
2
|
123
|
+
0
|
124
|
+
11
|
125
|
+
I
|
126
|
+
6
|
127
|
+
I
|
128
|
+
0
|
129
|
+
I
|
130
|
+
0
|
131
|
+
I
|
132
|
+
0
|
133
|
+
n
|
134
|
+
p
|
135
|
+
5
|
136
|
+
x
|
137
|
+
12
|
138
|
+
TestNotifier
|
139
|
+
x
|
140
|
+
11
|
141
|
+
open_module
|
142
|
+
x
|
143
|
+
15
|
144
|
+
__module_init__
|
145
|
+
M
|
146
|
+
1
|
147
|
+
n
|
148
|
+
n
|
149
|
+
x
|
150
|
+
12
|
151
|
+
TestNotifier
|
152
|
+
i
|
153
|
+
13
|
154
|
+
5
|
155
|
+
66
|
156
|
+
99
|
157
|
+
7
|
158
|
+
0
|
159
|
+
7
|
160
|
+
1
|
161
|
+
65
|
162
|
+
5
|
163
|
+
49
|
164
|
+
2
|
165
|
+
4
|
166
|
+
11
|
167
|
+
I
|
168
|
+
5
|
169
|
+
I
|
170
|
+
0
|
171
|
+
I
|
172
|
+
0
|
173
|
+
I
|
174
|
+
0
|
175
|
+
n
|
176
|
+
p
|
177
|
+
3
|
178
|
+
x
|
179
|
+
6
|
180
|
+
notify
|
181
|
+
M
|
182
|
+
1
|
183
|
+
n
|
184
|
+
n
|
185
|
+
x
|
186
|
+
6
|
187
|
+
notify
|
188
|
+
i
|
189
|
+
76
|
190
|
+
44
|
191
|
+
43
|
192
|
+
0
|
193
|
+
43
|
194
|
+
1
|
195
|
+
44
|
196
|
+
43
|
197
|
+
0
|
198
|
+
43
|
199
|
+
2
|
200
|
+
20
|
201
|
+
0
|
202
|
+
49
|
203
|
+
3
|
204
|
+
1
|
205
|
+
7
|
206
|
+
4
|
207
|
+
64
|
208
|
+
81
|
209
|
+
5
|
210
|
+
44
|
211
|
+
43
|
212
|
+
0
|
213
|
+
43
|
214
|
+
2
|
215
|
+
20
|
216
|
+
1
|
217
|
+
49
|
218
|
+
6
|
219
|
+
1
|
220
|
+
81
|
221
|
+
5
|
222
|
+
44
|
223
|
+
43
|
224
|
+
7
|
225
|
+
80
|
226
|
+
49
|
227
|
+
8
|
228
|
+
1
|
229
|
+
13
|
230
|
+
7
|
231
|
+
9
|
232
|
+
7
|
233
|
+
10
|
234
|
+
64
|
235
|
+
49
|
236
|
+
11
|
237
|
+
2
|
238
|
+
15
|
239
|
+
13
|
240
|
+
7
|
241
|
+
12
|
242
|
+
20
|
243
|
+
0
|
244
|
+
49
|
245
|
+
13
|
246
|
+
0
|
247
|
+
78
|
248
|
+
85
|
249
|
+
14
|
250
|
+
9
|
251
|
+
66
|
252
|
+
7
|
253
|
+
15
|
254
|
+
8
|
255
|
+
68
|
256
|
+
7
|
257
|
+
16
|
258
|
+
49
|
259
|
+
11
|
260
|
+
2
|
261
|
+
15
|
262
|
+
49
|
263
|
+
17
|
264
|
+
2
|
265
|
+
11
|
266
|
+
I
|
267
|
+
9
|
268
|
+
I
|
269
|
+
2
|
270
|
+
I
|
271
|
+
2
|
272
|
+
I
|
273
|
+
2
|
274
|
+
n
|
275
|
+
p
|
276
|
+
18
|
277
|
+
x
|
278
|
+
5
|
279
|
+
Guard
|
280
|
+
x
|
281
|
+
8
|
282
|
+
Notifier
|
283
|
+
x
|
284
|
+
17
|
285
|
+
TestResultHelpers
|
286
|
+
x
|
287
|
+
7
|
288
|
+
summary
|
289
|
+
s
|
290
|
+
2
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
x
|
295
|
+
1
|
296
|
+
+
|
297
|
+
x
|
298
|
+
8
|
299
|
+
duration
|
300
|
+
x
|
301
|
+
4
|
302
|
+
Hash
|
303
|
+
x
|
304
|
+
16
|
305
|
+
new_from_literal
|
306
|
+
x
|
307
|
+
5
|
308
|
+
title
|
309
|
+
s
|
310
|
+
18
|
311
|
+
Test::Unit results
|
312
|
+
x
|
313
|
+
3
|
314
|
+
[]=
|
315
|
+
x
|
316
|
+
5
|
317
|
+
image
|
318
|
+
x
|
319
|
+
13
|
320
|
+
failure_count
|
321
|
+
x
|
322
|
+
1
|
323
|
+
>
|
324
|
+
x
|
325
|
+
6
|
326
|
+
failed
|
327
|
+
x
|
328
|
+
7
|
329
|
+
success
|
330
|
+
x
|
331
|
+
6
|
332
|
+
notify
|
333
|
+
p
|
334
|
+
17
|
335
|
+
I
|
336
|
+
-1
|
337
|
+
I
|
338
|
+
8
|
339
|
+
I
|
340
|
+
0
|
341
|
+
I
|
342
|
+
9
|
343
|
+
I
|
344
|
+
5
|
345
|
+
I
|
346
|
+
a
|
347
|
+
I
|
348
|
+
20
|
349
|
+
I
|
350
|
+
c
|
351
|
+
I
|
352
|
+
28
|
353
|
+
I
|
354
|
+
b
|
355
|
+
I
|
356
|
+
32
|
357
|
+
I
|
358
|
+
c
|
359
|
+
I
|
360
|
+
44
|
361
|
+
I
|
362
|
+
0
|
363
|
+
I
|
364
|
+
48
|
365
|
+
I
|
366
|
+
9
|
367
|
+
I
|
368
|
+
4c
|
369
|
+
x
|
370
|
+
77
|
371
|
+
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/notifier.rb
|
372
|
+
p
|
373
|
+
2
|
374
|
+
x
|
375
|
+
6
|
376
|
+
result
|
377
|
+
x
|
378
|
+
12
|
379
|
+
elapsed_time
|
380
|
+
x
|
381
|
+
13
|
382
|
+
attach_method
|
383
|
+
p
|
384
|
+
3
|
385
|
+
I
|
386
|
+
2
|
387
|
+
I
|
388
|
+
8
|
389
|
+
I
|
390
|
+
d
|
391
|
+
x
|
392
|
+
77
|
393
|
+
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/notifier.rb
|
394
|
+
p
|
395
|
+
0
|
396
|
+
x
|
397
|
+
13
|
398
|
+
attach_method
|
399
|
+
p
|
400
|
+
3
|
401
|
+
I
|
402
|
+
2
|
403
|
+
I
|
404
|
+
6
|
405
|
+
I
|
406
|
+
1c
|
407
|
+
x
|
408
|
+
77
|
409
|
+
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/notifier.rb
|
410
|
+
p
|
411
|
+
0
|
412
|
+
x
|
413
|
+
13
|
414
|
+
attach_method
|
415
|
+
p
|
416
|
+
7
|
417
|
+
I
|
418
|
+
0
|
419
|
+
I
|
420
|
+
2
|
421
|
+
I
|
422
|
+
9
|
423
|
+
I
|
424
|
+
3
|
425
|
+
I
|
426
|
+
12
|
427
|
+
I
|
428
|
+
5
|
429
|
+
I
|
430
|
+
2e
|
431
|
+
x
|
432
|
+
77
|
433
|
+
/Users/remy/Development/Ruby/Gems/guard/guard-test/lib/guard/test/notifier.rb
|
434
|
+
p
|
435
|
+
0
|