tork 17.0.0 → 17.0.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.
- data/HISTORY.markdown +76 -52
- data/bin/tork +1 -1
- data/bin/tork-driver +1 -1
- data/bin/tork-herald +2 -2
- data/bin/tork-master +1 -1
- data/lib/tork/client.rb +2 -1
- data/lib/tork/config/cucumber.rb +12 -10
- data/lib/tork/driver.rb +14 -12
- data/lib/tork/version.rb +1 -1
- data/man/man1/tork-driver.1 +1 -1
- data/man/man1/tork-herald.1 +1 -1
- data/man/man1/tork-master.1 +1 -1
- data/man/man1/tork.1 +1 -1
- metadata +14 -14
data/HISTORY.markdown
CHANGED
@@ -1,8 +1,28 @@
|
|
1
|
+
------------------------------------------------------------------------------
|
2
|
+
Version 17.0.1 (2012-01-29)
|
3
|
+
------------------------------------------------------------------------------
|
4
|
+
|
5
|
+
Corrections:
|
6
|
+
|
7
|
+
* tork-herald(1) *sometimes* reported changed test files twice.
|
8
|
+
|
9
|
+
* tork/driver: only whole test file runs should qualify as pass.
|
10
|
+
|
11
|
+
* tork/config/cucumber: only set ARGV for `*.feature` test files.
|
12
|
+
|
13
|
+
* Tork::Client::Transceiver needs to stop both TX & RX loops.
|
14
|
+
|
15
|
+
Housekeeping:
|
16
|
+
|
17
|
+
* tork/driver: store test file lists in Set, not Array.
|
18
|
+
|
19
|
+
* HISTORY: use single-word change-set descriptions.
|
20
|
+
|
1
21
|
------------------------------------------------------------------------------
|
2
22
|
Version 17.0.0 (2012-01-27)
|
3
23
|
------------------------------------------------------------------------------
|
4
24
|
|
5
|
-
|
25
|
+
Divergences:
|
6
26
|
|
7
27
|
* tork-herald(1) now emits batches of single-line JSON arrays instead of
|
8
28
|
printing one (raw) path per line. This makes IPC uniform across Tork.
|
@@ -16,11 +36,13 @@ Breaking changes:
|
|
16
36
|
|
17
37
|
* The new order is: test_file, line_numbers, log_file, worker_number.
|
18
38
|
|
19
|
-
|
39
|
+
Improvements:
|
20
40
|
|
21
41
|
* GH-24: add `tork/config/dotlog` configuration helper to "hide" log files.
|
42
|
+
(Nicolas Fouché)
|
22
43
|
|
23
44
|
* GH-25: add `tork/config/logdir` configuration helper to isolate log files.
|
45
|
+
(Jose Pablo Barrantes)
|
24
46
|
|
25
47
|
* tork(1) now strips all whitespace from your input, in case you pressed
|
26
48
|
spacebar or tab a few times, by accident, before entering your command.
|
@@ -48,7 +70,7 @@ Housekeeping:
|
|
48
70
|
Version 16.0.0 (2012-01-25)
|
49
71
|
------------------------------------------------------------------------------
|
50
72
|
|
51
|
-
|
73
|
+
Divergences:
|
52
74
|
|
53
75
|
* Drop the `Tork::Config.test_name_extractor` configuration option.
|
54
76
|
|
@@ -56,7 +78,7 @@ Breaking changes:
|
|
56
78
|
|
57
79
|
* Pass $~ (MatchData) to `Tork::Config::test_file_globbers` functions.
|
58
80
|
|
59
|
-
|
81
|
+
Improvements:
|
60
82
|
|
61
83
|
* tork/config/cucumber: only run changed scenarios in changed features.
|
62
84
|
|
@@ -68,11 +90,11 @@ Housekeeping:
|
|
68
90
|
Version 15.1.0 (2012-01-25)
|
69
91
|
------------------------------------------------------------------------------
|
70
92
|
|
71
|
-
|
93
|
+
Improvements:
|
72
94
|
|
73
95
|
* GH-19: add `tork cucumber` for running cucumber features.
|
74
96
|
|
75
|
-
|
97
|
+
Corrections:
|
76
98
|
|
77
99
|
* tork/config/rails: support Rails 2 and don't assume AR is used. (Benjamin
|
78
100
|
Quorning)
|
@@ -90,7 +112,7 @@ Bug fixes:
|
|
90
112
|
Version 15.0.1 (2012-01-24)
|
91
113
|
------------------------------------------------------------------------------
|
92
114
|
|
93
|
-
|
115
|
+
Corrections:
|
94
116
|
|
95
117
|
* GH-21: Ruby 1.9 class_eval() is smarter than 1.8.
|
96
118
|
|
@@ -116,7 +138,7 @@ Housekeeping:
|
|
116
138
|
Version 15.0.0 (2012-01-23)
|
117
139
|
------------------------------------------------------------------------------
|
118
140
|
|
119
|
-
|
141
|
+
Divergences:
|
120
142
|
|
121
143
|
* This project has been renamed from TestR to Tork (test with fork) in order
|
122
144
|
to better compete with rival projects, namely Spork! >:-) Credit goes to
|
@@ -129,7 +151,7 @@ Breaking changes:
|
|
129
151
|
Version 14.3.0 (2012-01-20)
|
130
152
|
------------------------------------------------------------------------------
|
131
153
|
|
132
|
-
|
154
|
+
Improvements:
|
133
155
|
|
134
156
|
* testr(1): notify user while dispatching their commands. This is especially
|
135
157
|
useful when the "rerun_passed_test_files" command has been dispatched but
|
@@ -146,7 +168,7 @@ External changes:
|
|
146
168
|
|
147
169
|
* testr-driver(1): document the "over" status message in manual page.
|
148
170
|
|
149
|
-
|
171
|
+
Housekeeping:
|
150
172
|
|
151
173
|
* testr-driver(1): keep same herald; only replace master.
|
152
174
|
|
@@ -164,7 +186,7 @@ Internal changes:
|
|
164
186
|
Version 14.2.0 (2012-01-16)
|
165
187
|
------------------------------------------------------------------------------
|
166
188
|
|
167
|
-
|
189
|
+
Improvements:
|
168
190
|
|
169
191
|
* Add ability to run `testr rails` without needing a `.testr.rb` file.
|
170
192
|
|
@@ -172,7 +194,7 @@ New features:
|
|
172
194
|
|
173
195
|
* testr(1) now notifies you before absorbing overhead at startup.
|
174
196
|
|
175
|
-
|
197
|
+
Corrections:
|
176
198
|
|
177
199
|
* testr(1) now accepts death silently when Control-C is pressed.
|
178
200
|
|
@@ -180,11 +202,13 @@ Bug fixes:
|
|
180
202
|
Version 14.1.3 (2012-01-13)
|
181
203
|
------------------------------------------------------------------------------
|
182
204
|
|
183
|
-
|
205
|
+
Corrections:
|
184
206
|
|
185
207
|
* Add support Guard v0.9.0 and newer in `testr-herald`. (Jose Pablo
|
186
208
|
Barrantes)
|
187
209
|
|
210
|
+
Housekeeping:
|
211
|
+
|
188
212
|
* Tighten version constraints for gem dependencies to avoid future
|
189
213
|
breakages.
|
190
214
|
|
@@ -192,11 +216,11 @@ Internal changes:
|
|
192
216
|
Version 14.1.2 (2012-01-09)
|
193
217
|
------------------------------------------------------------------------------
|
194
218
|
|
195
|
-
|
219
|
+
Improvements:
|
196
220
|
|
197
221
|
* Don't consider partial test file pass as full pass.
|
198
222
|
|
199
|
-
|
223
|
+
Housekeeping:
|
200
224
|
|
201
225
|
* Upgrade to binman 3 for better bundler support.
|
202
226
|
|
@@ -204,7 +228,7 @@ Internal changes:
|
|
204
228
|
Version 14.1.1 (2011-12-07)
|
205
229
|
------------------------------------------------------------------------------
|
206
230
|
|
207
|
-
|
231
|
+
Corrections:
|
208
232
|
|
209
233
|
* Do not fail when given test file no longer exists.
|
210
234
|
|
@@ -235,7 +259,7 @@ Housekeeping:
|
|
235
259
|
Version 14.1.0 (2011-11-03)
|
236
260
|
------------------------------------------------------------------------------
|
237
261
|
|
238
|
-
|
262
|
+
Improvements:
|
239
263
|
|
240
264
|
* Make servers responsive to quit request (SIGTERM) from upstream.
|
241
265
|
|
@@ -252,7 +276,7 @@ New features:
|
|
252
276
|
documented in their manual pages, so you should have everything you
|
253
277
|
need to create *your own custom user interface to TestR* if you wish! :-)
|
254
278
|
|
255
|
-
|
279
|
+
Corrections:
|
256
280
|
|
257
281
|
* SIGCHLD does not awaken main thread in Ruby 1.9.3p0.
|
258
282
|
|
@@ -268,7 +292,7 @@ Housekeeping:
|
|
268
292
|
Version 14.0.3 (2011-10-11)
|
269
293
|
------------------------------------------------------------------------------
|
270
294
|
|
271
|
-
|
295
|
+
Corrections:
|
272
296
|
|
273
297
|
* Forgot to migrate the `testr/config/rails` configuration helper to use the
|
274
298
|
new TestR configuration parameter names.
|
@@ -277,7 +301,7 @@ Bug fixes:
|
|
277
301
|
Version 14.0.2 (2011-10-11)
|
278
302
|
------------------------------------------------------------------------------
|
279
303
|
|
280
|
-
|
304
|
+
Corrections:
|
281
305
|
|
282
306
|
* Fix updating passed/failed test files bookkeeping. Once a test file
|
283
307
|
failed, it was (incorrectly) always considered failed, even if it passed
|
@@ -293,7 +317,7 @@ Housekeeping:
|
|
293
317
|
Version 14.0.1 (2011-10-10)
|
294
318
|
------------------------------------------------------------------------------
|
295
319
|
|
296
|
-
|
320
|
+
Corrections:
|
297
321
|
|
298
322
|
* Use blue/red for pass/fail instead of green/red to accommodate the color
|
299
323
|
blind.
|
@@ -309,7 +333,7 @@ Housekeeping:
|
|
309
333
|
Version 14.0.0 (2011-10-09)
|
310
334
|
------------------------------------------------------------------------------
|
311
335
|
|
312
|
-
|
336
|
+
Divergences:
|
313
337
|
|
314
338
|
* Renamed this project and its resources from test-loop to TestR.
|
315
339
|
|
@@ -333,7 +357,7 @@ Incompatible changes:
|
|
333
357
|
|
334
358
|
* Removed the `test/loop/notify` and `test-loop/coco` libraries.
|
335
359
|
|
336
|
-
|
360
|
+
Improvements:
|
337
361
|
|
338
362
|
* The file system is no longer polled to detect modified files. Instead, it
|
339
363
|
is monitored for file modification events in a portable and efficient
|
@@ -369,12 +393,12 @@ Housekeeping:
|
|
369
393
|
Version 13.0.0 (2011-08-24)
|
370
394
|
------------------------------------------------------------------------------
|
371
395
|
|
372
|
-
|
396
|
+
Divergences:
|
373
397
|
|
374
398
|
* Pass worker sequence number as the last argument to lambda functions in
|
375
399
|
`Test::Loop.before_each_test` and `Test::Loop.after_each_test` arrays.
|
376
400
|
|
377
|
-
|
401
|
+
Improvements:
|
378
402
|
|
379
403
|
* In the `test/loop/rails` configuration preset:
|
380
404
|
|
@@ -404,7 +428,7 @@ Housekeeping:
|
|
404
428
|
Version 12.3.1 (2011-07-19)
|
405
429
|
------------------------------------------------------------------------------
|
406
430
|
|
407
|
-
|
431
|
+
Corrections:
|
408
432
|
|
409
433
|
* Binary data could not be stored in environment variable values.
|
410
434
|
|
@@ -416,7 +440,7 @@ Housekeeping:
|
|
416
440
|
Version 12.3.0 (2011-07-19)
|
417
441
|
------------------------------------------------------------------------------
|
418
442
|
|
419
|
-
|
443
|
+
Improvements:
|
420
444
|
|
421
445
|
* Add `Test::Loop::max_concurrent_tests` configuration parameter to limit
|
422
446
|
the number of test files run concurrently (default 4). Otherwise, with
|
@@ -449,7 +473,7 @@ Version 12.2.0 (2011-06-01)
|
|
449
473
|
Version 12.1.0 (2011-04-29)
|
450
474
|
------------------------------------------------------------------------------
|
451
475
|
|
452
|
-
|
476
|
+
Improvements:
|
453
477
|
|
454
478
|
* Add `Test::Loop.delay_per_iteration` parameter to control the number of
|
455
479
|
seconds (or fractions thereof) to sleep in between test-loop iterations.
|
@@ -458,7 +482,7 @@ New features:
|
|
458
482
|
Version 12.0.4 (2011-04-29)
|
459
483
|
------------------------------------------------------------------------------
|
460
484
|
|
461
|
-
|
485
|
+
Corrections:
|
462
486
|
|
463
487
|
* Reabsorb overhead when user's configuration file changes. (Brian D. Burns
|
464
488
|
and Daniel Pittman)
|
@@ -471,7 +495,7 @@ Bug fixes:
|
|
471
495
|
Version 12.0.3 (2011-04-25)
|
472
496
|
------------------------------------------------------------------------------
|
473
497
|
|
474
|
-
|
498
|
+
Corrections:
|
475
499
|
|
476
500
|
* Fix SIGCHLD handling and test completion reporting (Daniel Pittman).
|
477
501
|
|
@@ -529,7 +553,7 @@ Bug fixes:
|
|
529
553
|
Version 12.0.2 (2011-04-21)
|
530
554
|
------------------------------------------------------------------------------
|
531
555
|
|
532
|
-
|
556
|
+
Corrections:
|
533
557
|
|
534
558
|
* Consider DB schema dump file as overhead in Rails.
|
535
559
|
|
@@ -555,7 +579,7 @@ Documentation:
|
|
555
579
|
Version 12.0.1 (2011-04-20)
|
556
580
|
------------------------------------------------------------------------------
|
557
581
|
|
558
|
-
|
582
|
+
Corrections:
|
559
583
|
|
560
584
|
* Restore support for Ruby 1.8.7.
|
561
585
|
|
@@ -577,7 +601,7 @@ Documentation:
|
|
577
601
|
Version 12.0.0 (2011-04-19)
|
578
602
|
------------------------------------------------------------------------------
|
579
603
|
|
580
|
-
|
604
|
+
Divergences:
|
581
605
|
|
582
606
|
* You must now explicitly `require 'test/loop/rails'` for Rails support
|
583
607
|
because we can only *automatically* apply our Railtie (to disable class
|
@@ -587,7 +611,7 @@ Incompatible changes:
|
|
587
611
|
* Your tests can no longer read from the user's terminal (master's STDIN);
|
588
612
|
instead they will read from an empty stream (the reading end of IO.popen).
|
589
613
|
|
590
|
-
|
614
|
+
Corrections:
|
591
615
|
|
592
616
|
* Replace threads with SIGCHLD for reporting test results.
|
593
617
|
|
@@ -630,7 +654,7 @@ Documentation:
|
|
630
654
|
Version 11.0.1 (2011-04-14)
|
631
655
|
------------------------------------------------------------------------------
|
632
656
|
|
633
|
-
|
657
|
+
Corrections:
|
634
658
|
|
635
659
|
* Only attempt to define Railtie if the current Rails version supports it.
|
636
660
|
|
@@ -638,18 +662,18 @@ Bug fixes:
|
|
638
662
|
Version 11.0.0 (2011-04-14)
|
639
663
|
------------------------------------------------------------------------------
|
640
664
|
|
641
|
-
|
665
|
+
Divergences:
|
642
666
|
|
643
667
|
* The `test/loop/rails` preset has been internalized and is now applied
|
644
668
|
automatically if your test execution overhead includes Ruby on Rails.
|
645
669
|
|
646
|
-
|
670
|
+
Improvements:
|
647
671
|
|
648
672
|
* If you are using Rails 3, test-loop will automatically set
|
649
673
|
`config.cache_classes = false` for your test environment. (Brian D.
|
650
674
|
Burns)
|
651
675
|
|
652
|
-
|
676
|
+
Corrections:
|
653
677
|
|
654
678
|
* Avoid deadlock errors when printing output from Test::Unit and MiniTest.
|
655
679
|
(Brian D. Burns)
|
@@ -665,7 +689,7 @@ Bug fixes:
|
|
665
689
|
Version 10.0.1 (2011-04-08)
|
666
690
|
------------------------------------------------------------------------------
|
667
691
|
|
668
|
-
|
692
|
+
Corrections:
|
669
693
|
|
670
694
|
* Workers must ignore SIGTSTP, otherwise master waits forever before
|
671
695
|
exiting.
|
@@ -681,7 +705,7 @@ Bug fixes:
|
|
681
705
|
Version 10.0.0 (2011-04-06)
|
682
706
|
------------------------------------------------------------------------------
|
683
707
|
|
684
|
-
|
708
|
+
Divergences:
|
685
709
|
|
686
710
|
* The `Test::Loop.before_each_test` and `Test::Loop.after_each_test`
|
687
711
|
parameters are arrays now.
|
@@ -690,7 +714,7 @@ Incompatible changes:
|
|
690
714
|
Version 9.4.0 (2011-04-06)
|
691
715
|
------------------------------------------------------------------------------
|
692
716
|
|
693
|
-
|
717
|
+
Improvements:
|
694
718
|
|
695
719
|
* Allow lambda functions in `Test::Loop.test_file_matchers` to return `nil`
|
696
720
|
so that you can exclude certain tests from being executed. (Brian D.
|
@@ -702,7 +726,7 @@ New features:
|
|
702
726
|
|
703
727
|
watch 'ps xf | grep test-loop | sed 1,3d'
|
704
728
|
|
705
|
-
|
729
|
+
Corrections:
|
706
730
|
|
707
731
|
* Skip `at_exit()` when exiting master process. This prevents an empty test
|
708
732
|
from being run when exiting the loop after having processed a test/spec
|
@@ -722,7 +746,7 @@ Housekeeping:
|
|
722
746
|
Version 9.3.0 (2011-04-01)
|
723
747
|
------------------------------------------------------------------------------
|
724
748
|
|
725
|
-
|
749
|
+
Improvements:
|
726
750
|
|
727
751
|
* Resume currently running tests--as well as those currently needing to be
|
728
752
|
run--after reabsorbing test execution overhead. (Brian D. Burns)
|
@@ -739,7 +763,7 @@ New features:
|
|
739
763
|
* Use ANSI clear line command to erase control-key combinations outputted by
|
740
764
|
shells such as BASH and ZSH in test-loop's output. (Brian D. Burns)
|
741
765
|
|
742
|
-
|
766
|
+
Corrections:
|
743
767
|
|
744
768
|
* `@last_ran_at` was being set during every iteration of the loop. This is
|
745
769
|
problematic when Ruby's `Time.now` is more precise than your filesystem's
|
@@ -795,7 +819,7 @@ Version 9.0.1 (2011-02-18)
|
|
795
819
|
* Do not print worker PID in status messages because every test file has
|
796
820
|
exactly one worker anyway.
|
797
821
|
|
798
|
-
* Reabsorb on any `*.{rb,yml}` changes beneath the config
|
822
|
+
* Reabsorb on any `*.{rb,yml}` changes beneath the `config/` directory.
|
799
823
|
|
800
824
|
* Do not reabsorb overhead when the configuration file changes.
|
801
825
|
|
@@ -984,7 +1008,7 @@ Version 3.0.1 (2011-01-05)
|
|
984
1008
|
Version 3.0.0 (2011-01-04)
|
985
1009
|
------------------------------------------------------------------------------
|
986
1010
|
|
987
|
-
* Replace Rake
|
1011
|
+
* Replace Rake pathmap usage with lambda functions
|
988
1012
|
in the `@source_file_to_test_file_mapping` hash.
|
989
1013
|
|
990
1014
|
* Be resilient to syntax errors from loaded files.
|
@@ -1028,14 +1052,14 @@ Version 1.2.0 (2010-11-23)
|
|
1028
1052
|
|
1029
1053
|
* Notify user when absorbing overhead initially.
|
1030
1054
|
|
1031
|
-
* DRY up the
|
1055
|
+
* DRY up the repetition of Time.at(0) calculation.
|
1032
1056
|
|
1033
1057
|
------------------------------------------------------------------------------
|
1034
1058
|
Version 1.1.0 (2010-11-22)
|
1035
1059
|
------------------------------------------------------------------------------
|
1036
1060
|
|
1037
|
-
* All
|
1038
|
-
spec
|
1061
|
+
* All `*_{test,spec}_helper.rb` files inside `test/` and
|
1062
|
+
`spec/` are now considered to be absorable overhead.
|
1039
1063
|
|
1040
1064
|
------------------------------------------------------------------------------
|
1041
1065
|
Version 1.0.2 (2010-10-16)
|
@@ -1057,9 +1081,9 @@ Version 1.0.0 (2010-10-15)
|
|
1057
1081
|
|
1058
1082
|
* Remove ability to install as a Rails plugin.
|
1059
1083
|
|
1060
|
-
* Move logic from lib
|
1084
|
+
* Move logic from `lib/` into `bin/` to keep it simple.
|
1061
1085
|
|
1062
|
-
* Rely on $LOAD_PATH in bin
|
1086
|
+
* Rely on $LOAD_PATH in `bin/` instead of relative paths.
|
1063
1087
|
|
1064
1088
|
* Display status messages for better user interactivity.
|
1065
1089
|
|
@@ -1067,7 +1091,7 @@ Version 1.0.0 (2010-10-15)
|
|
1067
1091
|
Version 0.0.2 (2010-10-11)
|
1068
1092
|
------------------------------------------------------------------------------
|
1069
1093
|
|
1070
|
-
* Forgot to register bin/test-loop as gem executable.
|
1094
|
+
* Forgot to register `bin/test-loop` as gem executable.
|
1071
1095
|
|
1072
1096
|
* Revise Usage section into Invocation and Operation.
|
1073
1097
|
|
data/bin/tork
CHANGED
data/bin/tork-driver
CHANGED
data/bin/tork-herald
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
=begin
|
3
3
|
|
4
|
-
TORK-HERALD 1 2012-01-
|
4
|
+
TORK-HERALD 1 2012-01-29 17.0.1
|
5
5
|
==============================================================================
|
6
6
|
|
7
7
|
NAME
|
@@ -43,7 +43,7 @@ require 'guard'
|
|
43
43
|
require 'guard/listener'
|
44
44
|
require 'json'
|
45
45
|
|
46
|
-
listener = Guard::Listener.select_and_init(
|
46
|
+
listener = Guard::Listener.select_and_init({})
|
47
47
|
listener.on_change {|files| puts JSON.dump(files) }
|
48
48
|
STDOUT.sync = true # don't buffer puts()
|
49
49
|
listener.start
|
data/bin/tork-master
CHANGED
data/lib/tork/client.rb
CHANGED
data/lib/tork/config/cucumber.rb
CHANGED
@@ -15,15 +15,17 @@ Tork::Config.test_file_globbers.update(
|
|
15
15
|
Tork::Config.after_fork_hooks.push lambda {
|
16
16
|
|test_file, line_numbers, log_file, worker_number|
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
if File.extname(test_file) == '.feature'
|
19
|
+
# pass test_file in ARGV to cucumber(1) for running
|
20
|
+
ARGV << [test_file, *line_numbers].join(':')
|
21
|
+
require 'cucumber'
|
22
|
+
require 'rubygems'
|
23
|
+
cucumber_bin = Gem.bin_path('cucumber', 'cucumber')
|
24
|
+
at_exit { load cucumber_bin unless $! }
|
24
25
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
# noopify loading of test_file in Tork::Master#test()
|
27
|
+
# because cucumber feature files are not Ruby scripts
|
28
|
+
require 'tempfile'
|
29
|
+
test_file.replace Tempfile.new('tork-cucumber').path
|
30
|
+
end
|
29
31
|
}
|
data/lib/tork/driver.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'set'
|
1
2
|
require 'diff/lcs'
|
2
3
|
require 'tork/client'
|
3
4
|
require 'tork/server'
|
@@ -30,24 +31,26 @@ module Driver
|
|
30
31
|
@master.quit if defined? @master
|
31
32
|
|
32
33
|
@master = Client::Transceiver.new('tork-master') do |message|
|
33
|
-
event, file,
|
34
|
+
event, file, line_numbers = message
|
34
35
|
|
35
36
|
case event.to_sym
|
36
37
|
when :test
|
37
38
|
@waiting_test_files.delete file
|
38
|
-
@running_test_files.
|
39
|
+
@running_test_files.add file
|
39
40
|
|
40
41
|
when :pass
|
41
42
|
@running_test_files.delete file
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
|
44
|
+
# only whole test file runs qualify as pass
|
45
|
+
if line_numbers.empty?
|
46
|
+
@failed_test_files.delete file
|
47
|
+
@passed_test_files.add file
|
45
48
|
end
|
46
49
|
|
47
50
|
when :fail
|
48
51
|
@running_test_files.delete file
|
52
|
+
@failed_test_files.add file
|
49
53
|
@passed_test_files.delete file
|
50
|
-
@failed_test_files.push file unless @failed_test_files.include? file
|
51
54
|
end
|
52
55
|
|
53
56
|
@client.send message
|
@@ -91,10 +94,10 @@ module Driver
|
|
91
94
|
|
92
95
|
private
|
93
96
|
|
94
|
-
@waiting_test_files =
|
95
|
-
@running_test_files =
|
96
|
-
@passed_test_files =
|
97
|
-
@failed_test_files =
|
97
|
+
@waiting_test_files = Set.new
|
98
|
+
@running_test_files = Set.new
|
99
|
+
@passed_test_files = Set.new
|
100
|
+
@failed_test_files = Set.new
|
98
101
|
|
99
102
|
def rerun_running_test_files
|
100
103
|
run_test_files @running_test_files
|
@@ -105,8 +108,7 @@ private
|
|
105
108
|
end
|
106
109
|
|
107
110
|
def run_test_file file
|
108
|
-
if File.exist? file and
|
109
|
-
@waiting_test_files.push file
|
111
|
+
if File.exist? file and @waiting_test_files.add? file
|
110
112
|
@master.send [:test, file, find_changed_line_numbers(file)]
|
111
113
|
end
|
112
114
|
end
|
data/lib/tork/version.rb
CHANGED
data/man/man1/tork-driver.1
CHANGED
data/man/man1/tork-herald.1
CHANGED
data/man/man1/tork-master.1
CHANGED
data/man/man1/tork.1
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 17.0.
|
4
|
+
version: 17.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: binman
|
17
|
-
requirement: &
|
17
|
+
requirement: &13745920 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *13745920
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: json
|
28
|
-
requirement: &
|
28
|
+
requirement: &13745380 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -36,10 +36,10 @@ dependencies:
|
|
36
36
|
version: '2'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
|
-
version_requirements: *
|
39
|
+
version_requirements: *13745380
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: guard
|
42
|
-
requirement: &
|
42
|
+
requirement: &13744640 !ruby/object:Gem::Requirement
|
43
43
|
none: false
|
44
44
|
requirements:
|
45
45
|
- - ! '>='
|
@@ -50,10 +50,10 @@ dependencies:
|
|
50
50
|
version: '1'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
|
-
version_requirements: *
|
53
|
+
version_requirements: *13744640
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: diff-lcs
|
56
|
-
requirement: &
|
56
|
+
requirement: &13743900 !ruby/object:Gem::Requirement
|
57
57
|
none: false
|
58
58
|
requirements:
|
59
59
|
- - ! '>='
|
@@ -64,10 +64,10 @@ dependencies:
|
|
64
64
|
version: '2'
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
|
-
version_requirements: *
|
67
|
+
version_requirements: *13743900
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: md2man
|
70
|
-
requirement: &
|
70
|
+
requirement: &13743120 !ruby/object:Gem::Requirement
|
71
71
|
none: false
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
@@ -75,10 +75,10 @@ dependencies:
|
|
75
75
|
version: '1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
|
-
version_requirements: *
|
78
|
+
version_requirements: *13743120
|
79
79
|
- !ruby/object:Gem::Dependency
|
80
80
|
name: rake
|
81
|
-
requirement: &
|
81
|
+
requirement: &13742600 !ruby/object:Gem::Requirement
|
82
82
|
none: false
|
83
83
|
requirements:
|
84
84
|
- - ! '>='
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: '1'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *13742600
|
93
93
|
description: Continuous testing tool for Ruby.
|
94
94
|
email:
|
95
95
|
- sunaku@gmail.com
|