guard-cucumber 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,8 @@ module Guard
14
14
 
15
15
  def after_features(features)
16
16
  icon, messages = '', []
17
+
18
+ # summary of the run
17
19
  [:failed, :skipped, :undefined, :pending, :passed].reverse.each do |status|
18
20
  if step_mother.steps(status).any?
19
21
  icon = icon_for(status)
@@ -22,6 +24,18 @@ module Guard
22
24
  end
23
25
 
24
26
  ::Guard::Notifier.notify messages.reverse.join(', '), :title => 'Cucumber Results', :image => icon
27
+
28
+ # details about failures, what to work on
29
+ [:failed, :pending, :undefined].each do |status|
30
+ if step_mother.steps(status).any?
31
+ icon = icon_for(status)
32
+ step_mother.steps(status).each do |step|
33
+ ::Guard::Notifier.notify step.name, :title => "#{status} steps", :image => icon
34
+ end
35
+
36
+ break
37
+ end
38
+ end
25
39
  end
26
40
 
27
41
  private
@@ -0,0 +1,966 @@
1
+ !RBIX
2
+ 333337424968067900
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
+ 5
72
+ guard
73
+ x
74
+ 7
75
+ require
76
+ s
77
+ 26
78
+ cucumber/formatter/console
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
+ 29
97
+ 5
98
+ 66
99
+ 99
100
+ 7
101
+ 0
102
+ 1
103
+ 65
104
+ 49
105
+ 1
106
+ 3
107
+ 13
108
+ 99
109
+ 12
110
+ 7
111
+ 2
112
+ 12
113
+ 7
114
+ 3
115
+ 12
116
+ 65
117
+ 12
118
+ 49
119
+ 4
120
+ 4
121
+ 15
122
+ 49
123
+ 2
124
+ 0
125
+ 11
126
+ I
127
+ 6
128
+ I
129
+ 0
130
+ I
131
+ 0
132
+ I
133
+ 0
134
+ n
135
+ p
136
+ 5
137
+ x
138
+ 8
139
+ Cucumber
140
+ x
141
+ 10
142
+ open_class
143
+ x
144
+ 14
145
+ __class_init__
146
+ M
147
+ 1
148
+ n
149
+ n
150
+ x
151
+ 8
152
+ Cucumber
153
+ i
154
+ 29
155
+ 5
156
+ 66
157
+ 99
158
+ 7
159
+ 0
160
+ 1
161
+ 65
162
+ 49
163
+ 1
164
+ 3
165
+ 13
166
+ 99
167
+ 12
168
+ 7
169
+ 2
170
+ 12
171
+ 7
172
+ 3
173
+ 12
174
+ 65
175
+ 12
176
+ 49
177
+ 4
178
+ 4
179
+ 15
180
+ 49
181
+ 2
182
+ 0
183
+ 11
184
+ I
185
+ 6
186
+ I
187
+ 0
188
+ I
189
+ 0
190
+ I
191
+ 0
192
+ n
193
+ p
194
+ 5
195
+ x
196
+ 21
197
+ NotificationFormatter
198
+ x
199
+ 10
200
+ open_class
201
+ x
202
+ 14
203
+ __class_init__
204
+ M
205
+ 1
206
+ n
207
+ n
208
+ x
209
+ 21
210
+ NotificationFormatter
211
+ i
212
+ 69
213
+ 5
214
+ 66
215
+ 5
216
+ 44
217
+ 43
218
+ 0
219
+ 43
220
+ 1
221
+ 43
222
+ 2
223
+ 47
224
+ 49
225
+ 3
226
+ 1
227
+ 15
228
+ 5
229
+ 7
230
+ 4
231
+ 47
232
+ 49
233
+ 5
234
+ 1
235
+ 15
236
+ 99
237
+ 7
238
+ 6
239
+ 7
240
+ 7
241
+ 65
242
+ 67
243
+ 49
244
+ 8
245
+ 0
246
+ 49
247
+ 9
248
+ 4
249
+ 15
250
+ 99
251
+ 7
252
+ 10
253
+ 7
254
+ 11
255
+ 65
256
+ 67
257
+ 49
258
+ 8
259
+ 0
260
+ 49
261
+ 9
262
+ 4
263
+ 15
264
+ 5
265
+ 48
266
+ 12
267
+ 15
268
+ 99
269
+ 7
270
+ 13
271
+ 7
272
+ 14
273
+ 65
274
+ 67
275
+ 49
276
+ 8
277
+ 0
278
+ 49
279
+ 9
280
+ 4
281
+ 11
282
+ I
283
+ 5
284
+ I
285
+ 0
286
+ I
287
+ 0
288
+ I
289
+ 0
290
+ n
291
+ p
292
+ 15
293
+ x
294
+ 8
295
+ Cucumber
296
+ x
297
+ 9
298
+ Formatter
299
+ x
300
+ 7
301
+ Console
302
+ x
303
+ 7
304
+ include
305
+ x
306
+ 11
307
+ step_mother
308
+ x
309
+ 11
310
+ attr_reader
311
+ x
312
+ 10
313
+ initialize
314
+ M
315
+ 1
316
+ n
317
+ n
318
+ x
319
+ 10
320
+ initialize
321
+ i
322
+ 5
323
+ 20
324
+ 0
325
+ 38
326
+ 0
327
+ 11
328
+ I
329
+ 4
330
+ I
331
+ 3
332
+ I
333
+ 3
334
+ I
335
+ 3
336
+ n
337
+ p
338
+ 1
339
+ x
340
+ 12
341
+ @step_mother
342
+ p
343
+ 5
344
+ I
345
+ -1
346
+ I
347
+ b
348
+ I
349
+ 0
350
+ I
351
+ c
352
+ I
353
+ 5
354
+ x
355
+ 85
356
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
357
+ p
358
+ 3
359
+ x
360
+ 11
361
+ step_mother
362
+ x
363
+ 10
364
+ path_or_io
365
+ x
366
+ 7
367
+ options
368
+ x
369
+ 17
370
+ method_visibility
371
+ x
372
+ 15
373
+ add_defn_method
374
+ x
375
+ 14
376
+ after_features
377
+ M
378
+ 1
379
+ n
380
+ n
381
+ x
382
+ 14
383
+ after_features
384
+ i
385
+ 82
386
+ 7
387
+ 0
388
+ 64
389
+ 35
390
+ 0
391
+ 17
392
+ 2
393
+ 19
394
+ 1
395
+ 15
396
+ 19
397
+ 2
398
+ 15
399
+ 2
400
+ 15
401
+ 7
402
+ 1
403
+ 7
404
+ 2
405
+ 7
406
+ 3
407
+ 7
408
+ 4
409
+ 7
410
+ 5
411
+ 35
412
+ 5
413
+ 49
414
+ 6
415
+ 0
416
+ 56
417
+ 7
418
+ 50
419
+ 8
420
+ 0
421
+ 15
422
+ 44
423
+ 43
424
+ 9
425
+ 43
426
+ 10
427
+ 20
428
+ 2
429
+ 49
430
+ 6
431
+ 0
432
+ 7
433
+ 11
434
+ 64
435
+ 49
436
+ 12
437
+ 1
438
+ 44
439
+ 43
440
+ 13
441
+ 80
442
+ 49
443
+ 14
444
+ 1
445
+ 13
446
+ 7
447
+ 15
448
+ 7
449
+ 16
450
+ 64
451
+ 49
452
+ 17
453
+ 2
454
+ 15
455
+ 13
456
+ 7
457
+ 18
458
+ 20
459
+ 1
460
+ 49
461
+ 17
462
+ 2
463
+ 15
464
+ 49
465
+ 19
466
+ 2
467
+ 11
468
+ I
469
+ 9
470
+ I
471
+ 3
472
+ I
473
+ 1
474
+ I
475
+ 1
476
+ n
477
+ p
478
+ 20
479
+ s
480
+ 0
481
+
482
+ x
483
+ 6
484
+ failed
485
+ x
486
+ 7
487
+ skipped
488
+ x
489
+ 9
490
+ undefined
491
+ x
492
+ 7
493
+ pending
494
+ x
495
+ 6
496
+ passed
497
+ x
498
+ 7
499
+ reverse
500
+ M
501
+ 1
502
+ p
503
+ 2
504
+ x
505
+ 9
506
+ for_block
507
+ t
508
+ n
509
+ x
510
+ 14
511
+ after_features
512
+ i
513
+ 62
514
+ 57
515
+ 19
516
+ 0
517
+ 15
518
+ 5
519
+ 48
520
+ 0
521
+ 20
522
+ 0
523
+ 49
524
+ 1
525
+ 1
526
+ 49
527
+ 2
528
+ 0
529
+ 9
530
+ 60
531
+ 5
532
+ 20
533
+ 0
534
+ 47
535
+ 49
536
+ 3
537
+ 1
538
+ 22
539
+ 1
540
+ 1
541
+ 15
542
+ 21
543
+ 1
544
+ 2
545
+ 5
546
+ 5
547
+ 48
548
+ 0
549
+ 20
550
+ 0
551
+ 49
552
+ 1
553
+ 1
554
+ 49
555
+ 4
556
+ 0
557
+ 7
558
+ 5
559
+ 64
560
+ 20
561
+ 0
562
+ 49
563
+ 6
564
+ 0
565
+ 47
566
+ 49
567
+ 7
568
+ 3
569
+ 49
570
+ 8
571
+ 1
572
+ 8
573
+ 61
574
+ 1
575
+ 11
576
+ I
577
+ 7
578
+ I
579
+ 1
580
+ I
581
+ 1
582
+ I
583
+ 1
584
+ n
585
+ p
586
+ 9
587
+ x
588
+ 11
589
+ step_mother
590
+ x
591
+ 5
592
+ steps
593
+ x
594
+ 4
595
+ any?
596
+ x
597
+ 8
598
+ icon_for
599
+ x
600
+ 6
601
+ length
602
+ s
603
+ 4
604
+ step
605
+ x
606
+ 4
607
+ to_s
608
+ x
609
+ 10
610
+ dump_count
611
+ x
612
+ 2
613
+ <<
614
+ p
615
+ 11
616
+ I
617
+ 0
618
+ I
619
+ 11
620
+ I
621
+ 4
622
+ I
623
+ 12
624
+ I
625
+ 11
626
+ I
627
+ 13
628
+ I
629
+ 1c
630
+ I
631
+ 14
632
+ I
633
+ 3c
634
+ I
635
+ 12
636
+ I
637
+ 3e
638
+ x
639
+ 85
640
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
641
+ p
642
+ 1
643
+ x
644
+ 6
645
+ status
646
+ x
647
+ 4
648
+ each
649
+ x
650
+ 5
651
+ Guard
652
+ x
653
+ 8
654
+ Notifier
655
+ s
656
+ 2
657
+ ,
658
+ x
659
+ 4
660
+ join
661
+ x
662
+ 4
663
+ Hash
664
+ x
665
+ 16
666
+ new_from_literal
667
+ x
668
+ 5
669
+ title
670
+ s
671
+ 16
672
+ Cucumber Results
673
+ x
674
+ 3
675
+ []=
676
+ x
677
+ 5
678
+ image
679
+ x
680
+ 6
681
+ notify
682
+ p
683
+ 9
684
+ I
685
+ -1
686
+ I
687
+ f
688
+ I
689
+ 0
690
+ I
691
+ 10
692
+ I
693
+ f
694
+ I
695
+ 11
696
+ I
697
+ 24
698
+ I
699
+ 18
700
+ I
701
+ 52
702
+ x
703
+ 85
704
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
705
+ p
706
+ 3
707
+ x
708
+ 8
709
+ features
710
+ x
711
+ 4
712
+ icon
713
+ x
714
+ 8
715
+ messages
716
+ x
717
+ 7
718
+ private
719
+ x
720
+ 8
721
+ icon_for
722
+ M
723
+ 1
724
+ n
725
+ n
726
+ x
727
+ 8
728
+ icon_for
729
+ i
730
+ 67
731
+ 20
732
+ 0
733
+ 13
734
+ 7
735
+ 0
736
+ 12
737
+ 49
738
+ 1
739
+ 1
740
+ 9
741
+ 16
742
+ 15
743
+ 7
744
+ 2
745
+ 8
746
+ 66
747
+ 13
748
+ 7
749
+ 3
750
+ 12
751
+ 49
752
+ 1
753
+ 1
754
+ 10
755
+ 45
756
+ 13
757
+ 7
758
+ 4
759
+ 12
760
+ 49
761
+ 1
762
+ 1
763
+ 10
764
+ 45
765
+ 13
766
+ 7
767
+ 5
768
+ 12
769
+ 49
770
+ 1
771
+ 1
772
+ 10
773
+ 45
774
+ 8
775
+ 50
776
+ 15
777
+ 7
778
+ 3
779
+ 8
780
+ 66
781
+ 13
782
+ 7
783
+ 6
784
+ 12
785
+ 49
786
+ 1
787
+ 1
788
+ 9
789
+ 64
790
+ 15
791
+ 7
792
+ 6
793
+ 8
794
+ 66
795
+ 15
796
+ 1
797
+ 11
798
+ I
799
+ 4
800
+ I
801
+ 1
802
+ I
803
+ 1
804
+ I
805
+ 1
806
+ n
807
+ p
808
+ 7
809
+ x
810
+ 6
811
+ passed
812
+ x
813
+ 3
814
+ ===
815
+ x
816
+ 7
817
+ success
818
+ x
819
+ 7
820
+ pending
821
+ x
822
+ 9
823
+ undefined
824
+ x
825
+ 7
826
+ skipped
827
+ x
828
+ 6
829
+ failed
830
+ p
831
+ 19
832
+ I
833
+ -1
834
+ I
835
+ 1d
836
+ I
837
+ 0
838
+ I
839
+ 1e
840
+ I
841
+ 2
842
+ I
843
+ 1f
844
+ I
845
+ c
846
+ I
847
+ 20
848
+ I
849
+ 10
850
+ I
851
+ 21
852
+ I
853
+ 2e
854
+ I
855
+ 22
856
+ I
857
+ 32
858
+ I
859
+ 23
860
+ I
861
+ 3c
862
+ I
863
+ 24
864
+ I
865
+ 41
866
+ I
867
+ 1e
868
+ I
869
+ 43
870
+ x
871
+ 85
872
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
873
+ p
874
+ 1
875
+ x
876
+ 6
877
+ status
878
+ p
879
+ 13
880
+ I
881
+ 2
882
+ I
883
+ 7
884
+ I
885
+ f
886
+ I
887
+ 9
888
+ I
889
+ 17
890
+ I
891
+ b
892
+ I
893
+ 25
894
+ I
895
+ f
896
+ I
897
+ 33
898
+ I
899
+ 1b
900
+ I
901
+ 37
902
+ I
903
+ 1d
904
+ I
905
+ 45
906
+ x
907
+ 85
908
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
909
+ p
910
+ 0
911
+ x
912
+ 13
913
+ attach_method
914
+ p
915
+ 3
916
+ I
917
+ 2
918
+ I
919
+ 6
920
+ I
921
+ 1d
922
+ x
923
+ 85
924
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
925
+ p
926
+ 0
927
+ x
928
+ 13
929
+ attach_method
930
+ p
931
+ 3
932
+ I
933
+ 2
934
+ I
935
+ 5
936
+ I
937
+ 1d
938
+ x
939
+ 85
940
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
941
+ p
942
+ 0
943
+ x
944
+ 13
945
+ attach_method
946
+ p
947
+ 7
948
+ I
949
+ 0
950
+ I
951
+ 1
952
+ I
953
+ 9
954
+ I
955
+ 2
956
+ I
957
+ 12
958
+ I
959
+ 4
960
+ I
961
+ 2e
962
+ x
963
+ 85
964
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber/notification_formatter.rb
965
+ p
966
+ 0