guard-cucumber 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -70,15 +70,19 @@ Former `:color`, `:drb`, `:port` and `:profile` options are thus deprecated and
70
70
  :notification => false # Don't display Growl (or Libnotify) notification
71
71
  # default: true
72
72
 
73
- :all_after_pass => false # don't run all features after changed features pass
73
+ :all_after_pass => false # Don't run all features after changed features pass
74
74
  # default: true
75
75
 
76
- :all_on_start => false # don't run all the features at startup
76
+ :all_on_start => false # Don't run all the features at startup
77
77
  # default: true
78
78
 
79
- :keep_failed => false # keep failed features until them pass
79
+ :keep_failed => false # Keep failed features until them pass
80
80
  # default: true
81
81
 
82
+ :change_format => 'pretty' # Use a different cucumber format when running individual features
83
+ # This replaces the Cucumber --format option within the :cli option
84
+ # default: nil
85
+
82
86
  ## Cucumber configuration
83
87
 
84
88
  It's **very important** that you understand how Cucumber gets configured, because it's often the origin of
@@ -141,9 +145,10 @@ Pull requests are very welcome! Make sure your patches are well tested.
141
145
 
142
146
  ## Contributors
143
147
 
144
- * [Oriol Gual](https://github.com/oriolgual)
145
148
  * [Aleksei Gusev](https://github.com/hron)
146
149
  * [Loren Norman](https://github.com/lorennorman)
150
+ * [Nicholas A Clark](https://github.com/NickClark)
151
+ * [Oriol Gual](https://github.com/oriolgual)
147
152
 
148
153
  Since guard-cucumber is very close to guard-rspec, some contributions by the following authors have been
149
154
  incorporated into guard-cucumber:
@@ -39,6 +39,7 @@ module Guard
39
39
  def run_on_change(paths)
40
40
  paths += @failed_paths if @options[:keep_failed]
41
41
  paths = Inspector.clean(paths)
42
+ options = @options[:change_format] ? change_format(@options[:change_format]) : @options
42
43
  passed = Runner.run(paths, paths.include?('features') ? options.merge({ :message => 'Running all features' }) : options)
43
44
 
44
45
  if passed
@@ -67,5 +68,15 @@ module Guard
67
68
  failed
68
69
  end
69
70
 
71
+ def change_format(format)
72
+ cli_parts = @options[:cli].split(" ")
73
+ cli_parts.each_with_index do |part, index|
74
+ if part == "--format" && cli_parts[index + 2] != "--out"
75
+ cli_parts[index + 1] = format
76
+ end
77
+ end
78
+ @options.merge(:cli => cli_parts.join(" "))
79
+ end
80
+
70
81
  end
71
82
  end
@@ -169,7 +169,7 @@ x
169
169
  8
170
170
  Cucumber
171
171
  i
172
- 112
172
+ 126
173
173
  5
174
174
  66
175
175
  5
@@ -281,6 +281,20 @@ i
281
281
  49
282
282
  8
283
283
  4
284
+ 15
285
+ 99
286
+ 7
287
+ 20
288
+ 7
289
+ 21
290
+ 65
291
+ 67
292
+ 49
293
+ 7
294
+ 0
295
+ 49
296
+ 8
297
+ 4
284
298
  11
285
299
  I
286
300
  5
@@ -292,7 +306,7 @@ I
292
306
  0
293
307
  n
294
308
  p
295
- 20
309
+ 22
296
310
  x
297
311
  6
298
312
  Runner
@@ -796,7 +810,7 @@ x
796
810
  13
797
811
  run_on_change
798
812
  i
799
- 155
813
+ 181
800
814
  39
801
815
  0
802
816
  7
@@ -829,24 +843,51 @@ i
829
843
  19
830
844
  0
831
845
  15
832
- 45
846
+ 39
847
+ 0
848
+ 7
849
+ 8
850
+ 49
851
+ 2
852
+ 1
853
+ 9
854
+ 55
855
+ 5
856
+ 39
857
+ 0
858
+ 7
833
859
  8
860
+ 49
861
+ 2
862
+ 1
863
+ 47
864
+ 49
865
+ 8
866
+ 1
867
+ 8
868
+ 57
869
+ 39
870
+ 0
871
+ 19
872
+ 1
873
+ 15
874
+ 45
834
875
  9
876
+ 10
835
877
  20
836
878
  0
837
879
  20
838
880
  0
839
881
  7
840
- 10
882
+ 11
841
883
  64
842
884
  49
843
- 11
885
+ 12
844
886
  1
845
887
  9
846
- 72
847
- 5
848
- 48
849
- 12
888
+ 99
889
+ 20
890
+ 1
850
891
  44
851
892
  43
852
893
  13
@@ -868,20 +909,19 @@ i
868
909
  18
869
910
  1
870
911
  8
871
- 75
872
- 5
873
- 48
874
- 12
912
+ 101
913
+ 20
914
+ 1
875
915
  49
876
916
  19
877
917
  2
878
918
  19
879
- 1
919
+ 2
880
920
  15
881
921
  20
882
- 1
922
+ 2
883
923
  9
884
- 129
924
+ 155
885
925
  39
886
926
  0
887
927
  7
@@ -890,7 +930,7 @@ i
890
930
  2
891
931
  1
892
932
  9
893
- 104
933
+ 130
894
934
  39
895
935
  3
896
936
  20
@@ -900,14 +940,14 @@ i
900
940
  38
901
941
  3
902
942
  8
903
- 105
943
+ 131
904
944
  1
905
945
  15
906
946
  39
907
947
  21
908
948
  13
909
949
  9
910
- 119
950
+ 145
911
951
  15
912
952
  39
913
953
  0
@@ -917,15 +957,15 @@ i
917
957
  2
918
958
  1
919
959
  9
920
- 126
960
+ 152
921
961
  5
922
962
  48
923
963
  23
924
964
  8
925
- 127
965
+ 153
926
966
  1
927
967
  8
928
- 154
968
+ 180
929
969
  39
930
970
  0
931
971
  7
@@ -934,7 +974,7 @@ i
934
974
  2
935
975
  1
936
976
  9
937
- 149
977
+ 175
938
978
  39
939
979
  3
940
980
  5
@@ -945,7 +985,7 @@ i
945
985
  38
946
986
  3
947
987
  8
948
- 150
988
+ 176
949
989
  1
950
990
  15
951
991
  2
@@ -953,9 +993,9 @@ i
953
993
  21
954
994
  11
955
995
  I
956
- 9
996
+ a
957
997
  I
958
- 2
998
+ 3
959
999
  I
960
1000
  1
961
1001
  I
@@ -986,6 +1026,9 @@ x
986
1026
  5
987
1027
  clean
988
1028
  x
1029
+ 13
1030
+ change_format
1031
+ x
989
1032
  6
990
1033
  Runner
991
1034
  n
@@ -996,9 +1039,6 @@ x
996
1039
  8
997
1040
  include?
998
1041
  x
999
- 7
1000
- options
1001
- x
1002
1042
  4
1003
1043
  Hash
1004
1044
  x
@@ -1035,7 +1075,7 @@ x
1035
1075
  20
1036
1076
  read_failed_features
1037
1077
  p
1038
- 19
1078
+ 21
1039
1079
  I
1040
1080
  -1
1041
1081
  I
@@ -1053,36 +1093,43 @@ I
1053
1093
  I
1054
1094
  2a
1055
1095
  I
1056
- 51
1096
+ 3c
1057
1097
  I
1058
- 2c
1098
+ 2b
1059
1099
  I
1060
- 55
1100
+ 6b
1061
1101
  I
1062
- 2e
1102
+ 2d
1063
1103
  I
1064
- 6a
1104
+ 6f
1065
1105
  I
1066
- 30
1106
+ 2f
1067
1107
  I
1068
- 81
1108
+ 84
1069
1109
  I
1070
- 33
1110
+ 31
1071
1111
  I
1072
- 97
1112
+ 9b
1073
1113
  I
1074
- 35
1114
+ 34
1075
1115
  I
1076
- 9b
1116
+ b1
1117
+ I
1118
+ 36
1119
+ I
1120
+ b5
1077
1121
  x
1078
1122
  62
1079
1123
  /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber.rb
1080
1124
  p
1081
- 2
1125
+ 3
1082
1126
  x
1083
1127
  5
1084
1128
  paths
1085
1129
  x
1130
+ 7
1131
+ options
1132
+ x
1086
1133
  6
1087
1134
  passed
1088
1135
  x
@@ -1196,31 +1243,31 @@ p
1196
1243
  I
1197
1244
  -1
1198
1245
  I
1199
- 3b
1246
+ 3c
1200
1247
  I
1201
1248
  0
1202
1249
  I
1203
- 3c
1250
+ 3d
1204
1251
  I
1205
1252
  5
1206
1253
  I
1207
- 3e
1254
+ 3f
1208
1255
  I
1209
1256
  10
1210
1257
  I
1211
- 3f
1258
+ 40
1212
1259
  I
1213
1260
  25
1214
1261
  I
1215
- 40
1262
+ 41
1216
1263
  I
1217
1264
  30
1218
1265
  I
1219
- 3e
1266
+ 3f
1220
1267
  I
1221
1268
  32
1222
1269
  I
1223
- 43
1270
+ 44
1224
1271
  I
1225
1272
  35
1226
1273
  x
@@ -1231,8 +1278,288 @@ p
1231
1278
  x
1232
1279
  6
1233
1280
  failed
1281
+ x
1282
+ 13
1283
+ change_format
1284
+ M
1285
+ 1
1286
+ n
1287
+ n
1288
+ x
1289
+ 13
1290
+ change_format
1291
+ i
1292
+ 52
1293
+ 39
1294
+ 0
1295
+ 7
1296
+ 1
1297
+ 49
1298
+ 2
1299
+ 1
1300
+ 7
1301
+ 3
1302
+ 64
1303
+ 49
1304
+ 4
1305
+ 1
1306
+ 19
1307
+ 1
1308
+ 15
1309
+ 20
1310
+ 1
1311
+ 56
1312
+ 5
1313
+ 50
1314
+ 6
1315
+ 0
1316
+ 15
1317
+ 39
1318
+ 0
1319
+ 44
1320
+ 43
1321
+ 7
1322
+ 79
1323
+ 49
1324
+ 8
1325
+ 1
1326
+ 13
1327
+ 7
1328
+ 1
1329
+ 20
1330
+ 1
1331
+ 7
1332
+ 3
1333
+ 64
1334
+ 49
1335
+ 9
1336
+ 1
1337
+ 49
1338
+ 10
1339
+ 2
1340
+ 15
1341
+ 49
1342
+ 11
1343
+ 1
1344
+ 11
1345
+ I
1346
+ 8
1347
+ I
1348
+ 2
1349
+ I
1350
+ 1
1351
+ I
1352
+ 1
1353
+ n
1234
1354
  p
1355
+ 12
1356
+ x
1357
+ 8
1358
+ @options
1359
+ x
1360
+ 3
1361
+ cli
1362
+ x
1363
+ 2
1364
+ []
1365
+ s
1366
+ 1
1367
+
1368
+ x
1369
+ 5
1370
+ split
1371
+ M
1372
+ 1
1373
+ p
1374
+ 2
1375
+ x
1376
+ 9
1377
+ for_block
1378
+ t
1379
+ n
1380
+ x
1381
+ 13
1382
+ change_format
1383
+ i
1384
+ 67
1385
+ 58
1386
+ 37
1387
+ 19
1388
+ 0
1389
+ 15
1390
+ 37
1235
1391
  19
1392
+ 1
1393
+ 15
1394
+ 15
1395
+ 20
1396
+ 0
1397
+ 7
1398
+ 0
1399
+ 64
1400
+ 83
1401
+ 1
1402
+ 13
1403
+ 9
1404
+ 43
1405
+ 15
1406
+ 21
1407
+ 1
1408
+ 1
1409
+ 20
1410
+ 1
1411
+ 80
1412
+ 81
1413
+ 2
1414
+ 49
1415
+ 3
1416
+ 1
1417
+ 7
1418
+ 4
1419
+ 64
1420
+ 83
1421
+ 1
1422
+ 10
1423
+ 42
1424
+ 2
1425
+ 8
1426
+ 43
1427
+ 3
1428
+ 9
1429
+ 65
1430
+ 21
1431
+ 1
1432
+ 1
1433
+ 20
1434
+ 1
1435
+ 79
1436
+ 81
1437
+ 2
1438
+ 21
1439
+ 1
1440
+ 0
1441
+ 13
1442
+ 18
1443
+ 3
1444
+ 49
1445
+ 5
1446
+ 2
1447
+ 15
1448
+ 8
1449
+ 66
1450
+ 1
1451
+ 11
1452
+ I
1453
+ 7
1454
+ I
1455
+ 2
1456
+ I
1457
+ 2
1458
+ I
1459
+ 2
1460
+ n
1461
+ p
1462
+ 6
1463
+ s
1464
+ 8
1465
+ --format
1466
+ x
1467
+ 2
1468
+ ==
1469
+ x
1470
+ 1
1471
+ +
1472
+ x
1473
+ 2
1474
+ []
1475
+ s
1476
+ 5
1477
+ --out
1478
+ x
1479
+ 3
1480
+ []=
1481
+ p
1482
+ 9
1483
+ I
1484
+ 0
1485
+ I
1486
+ 49
1487
+ I
1488
+ a
1489
+ I
1490
+ 4a
1491
+ I
1492
+ 2d
1493
+ I
1494
+ 4b
1495
+ I
1496
+ 41
1497
+ I
1498
+ 4a
1499
+ I
1500
+ 43
1501
+ x
1502
+ 62
1503
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber.rb
1504
+ p
1505
+ 2
1506
+ x
1507
+ 4
1508
+ part
1509
+ x
1510
+ 5
1511
+ index
1512
+ x
1513
+ 15
1514
+ each_with_index
1515
+ x
1516
+ 4
1517
+ Hash
1518
+ x
1519
+ 16
1520
+ new_from_literal
1521
+ x
1522
+ 4
1523
+ join
1524
+ x
1525
+ 3
1526
+ []=
1527
+ x
1528
+ 5
1529
+ merge
1530
+ p
1531
+ 9
1532
+ I
1533
+ -1
1534
+ I
1535
+ 47
1536
+ I
1537
+ 0
1538
+ I
1539
+ 48
1540
+ I
1541
+ 10
1542
+ I
1543
+ 49
1544
+ I
1545
+ 18
1546
+ I
1547
+ 4e
1548
+ I
1549
+ 34
1550
+ x
1551
+ 62
1552
+ /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber.rb
1553
+ p
1554
+ 2
1555
+ x
1556
+ 6
1557
+ format
1558
+ x
1559
+ 9
1560
+ cli_parts
1561
+ p
1562
+ 21
1236
1563
  I
1237
1564
  2
1238
1565
  I
@@ -1264,13 +1591,17 @@ I
1264
1591
  I
1265
1592
  5e
1266
1593
  I
1267
- 39
1594
+ 3a
1268
1595
  I
1269
1596
  62
1270
1597
  I
1271
- 3b
1598
+ 3c
1272
1599
  I
1273
1600
  70
1601
+ I
1602
+ 47
1603
+ I
1604
+ 7e
1274
1605
  x
1275
1606
  62
1276
1607
  /Users/michi/Repositories/guard-cucumber/lib/guard/cucumber.rb
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module CucumberVersion
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -152,7 +152,7 @@ x
152
152
  VERSION
153
153
  s
154
154
  5
155
- 0.3.4
155
+ 0.4.0
156
156
  x
157
157
  9
158
158
  const_set
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: guard-cucumber
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michael Kessler
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-07 00:00:00 +02:00
13
+ date: 2011-06-10 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency