tork 15.0.1 → 15.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.markdown CHANGED
@@ -1,28 +1,50 @@
1
+ ------------------------------------------------------------------------------
2
+ Version 15.1.0 (2012-01-25)
3
+ ------------------------------------------------------------------------------
4
+
5
+ New features:
6
+
7
+ * GH-19: add support for running cucumber features.
8
+
9
+ Bug fixes:
10
+
11
+ * tork/config/rails: support Rails 2 and don't assume AR is used. (Benjamin
12
+ Quorning)
13
+
14
+ * tork/config: settings from configuration helpers specified in
15
+ $TORK_CONFIGS should override settings from the `.tork.rb` file.
16
+
17
+ * README: need to set $PATH to run this project from a git clone.
18
+
19
+ * LICENSE: give copyright to major contributors only.
20
+ See <http://stackoverflow.com/questions/1497756>.
21
+ Also added forgotten Luke Wendling to the list.
22
+
1
23
  ------------------------------------------------------------------------------
2
24
  Version 15.0.1 (2012-01-24)
3
25
  ------------------------------------------------------------------------------
4
26
 
5
27
  Bug fixes:
6
28
 
7
- * GH-21: Ruby 1.9 class_eval() is smarter than 1.8.
29
+ * GH-21: Ruby 1.9 class_eval() is smarter than 1.8.
8
30
 
9
- * GH-20: forgot `require 'thread'` for Mutex class. [Jesse Cooke]
31
+ * GH-20: forgot `require 'thread'` for Mutex class. (Jesse Cooke)
10
32
 
11
33
  Housekeeping:
12
34
 
13
- * tork(1): fix shadowed variable names. [Jose Pablo Barrantes]
35
+ * tork(1): fix shadowed variable names. (Jose Pablo Barrantes)
14
36
 
15
- * GH-22: fix command to build & install gem from source.
37
+ * GH-22: fix command to build & install gem from source.
16
38
 
17
- * GH-22: add m2dman as development dependency in gemspec.
39
+ * GH-22: add m2dman as development dependency in gemspec.
18
40
 
19
- * GH-18: windows not supported; lacks fork & SIGCHLD.
41
+ * GH-18: windows not supported; lacks fork & SIGCHLD.
20
42
 
21
- * README: spruce up introduction and features list.
43
+ * README: spruce up introduction and features list.
22
44
 
23
- * README: missed a testr => tork rename in watch cmd.
45
+ * README: missed a testr => tork rename in watch cmd.
24
46
 
25
- * README: add tip about Guard's FS watching backends.
47
+ * README: add tip about Guard's FS watching backends.
26
48
 
27
49
  ------------------------------------------------------------------------------
28
50
  Version 15.0.0 (2012-01-23)
@@ -94,10 +116,11 @@ Version 14.1.3 (2012-01-13)
94
116
 
95
117
  Internal changes:
96
118
 
97
- * Add support Guard v0.9.0 and newer in `testr-herald`. Thanks to Jose Pablo
98
- Barrantes for [this contribution](https://github.com/sunaku/tork/pull/16).
119
+ * Add support Guard v0.9.0 and newer in `testr-herald`. (Jose Pablo
120
+ Barrantes)
99
121
 
100
- * Tighten version constraints for gem dependencies to avoid future breakages.
122
+ * Tighten version constraints for gem dependencies to avoid future
123
+ breakages.
101
124
 
102
125
  ------------------------------------------------------------------------------
103
126
  Version 14.1.2 (2012-01-09)
@@ -105,11 +128,11 @@ Version 14.1.2 (2012-01-09)
105
128
 
106
129
  External changes:
107
130
 
108
- * Don't consider partial test file pass as full pass.
131
+ * Don't consider partial test file pass as full pass.
109
132
 
110
133
  Internal changes:
111
134
 
112
- * Upgrade to binman 3 for better bundler support.
135
+ * Upgrade to binman 3 for better bundler support.
113
136
 
114
137
  ------------------------------------------------------------------------------
115
138
  Version 14.1.1 (2011-12-07)
@@ -148,32 +171,32 @@ Version 14.1.0 (2011-11-03)
148
171
 
149
172
  New features:
150
173
 
151
- * Make servers responsive to quit request (SIGTERM) from upstream.
174
+ * Make servers responsive to quit request (SIGTERM) from upstream.
152
175
 
153
- This change lets the user quit testr-master(1) while it is loading
154
- test execution overhead (which can be a lengthy, blocking operation).
176
+ This change lets the user quit testr-master(1) while it is loading
177
+ test execution overhead (which can be a lengthy, blocking operation).
155
178
 
156
- By sending a signal to the server, we don't have to wait for it to
157
- finish processing its current command before seeing our :quit command.
179
+ By sending a signal to the server, we don't have to wait for it to
180
+ finish processing its current command before seeing our :quit command.
158
181
 
159
- * Add embedded BinMan manual pages to bin scripts. All TestR scripts now
160
- have a `--help` option which displays their UNIX manual page. Try it!
182
+ * Add embedded BinMan manual pages to bin scripts. All TestR scripts now
183
+ have a `--help` option which displays their UNIX manual page. Try it!
161
184
 
162
- The single-line JSON message protocol used by these scripts is now
163
- documented in their manual pages, so you should have everything you
164
- need to create *your own custom user interface to TestR* if you wish! :-)
185
+ The single-line JSON message protocol used by these scripts is now
186
+ documented in their manual pages, so you should have everything you
187
+ need to create *your own custom user interface to TestR* if you wish! :-)
165
188
 
166
189
  Bug fixes:
167
190
 
168
- * SIGCHLD does not awaken main thread in Ruby 1.9.3p0.
191
+ * SIGCHLD does not awaken main thread in Ruby 1.9.3p0.
169
192
 
170
193
  Housekeeping:
171
194
 
172
- * Simplify watch(1) ps(1) process title monitoring.
195
+ * Simplify watch(1) ps(1) process title monitoring.
173
196
 
174
- * Testr: tell user to press ENTER after command key.
197
+ * Testr: tell user to press ENTER after command key.
175
198
 
176
- * README: add tip on loading factory_girl factories.
199
+ * README: add tip on loading factory_girl factories.
177
200
 
178
201
  ------------------------------------------------------------------------------
179
202
  Version 14.0.3 (2011-10-11)
@@ -181,8 +204,8 @@ Version 14.0.3 (2011-10-11)
181
204
 
182
205
  Bug fixes:
183
206
 
184
- * Forgot to migrate the `testr/config/rails` configuration helper to use the
185
- new TestR configuration parameter names.
207
+ * Forgot to migrate the `testr/config/rails` configuration helper to use the
208
+ new TestR configuration parameter names.
186
209
 
187
210
  ------------------------------------------------------------------------------
188
211
  Version 14.0.2 (2011-10-11)
@@ -190,14 +213,15 @@ Version 14.0.2 (2011-10-11)
190
213
 
191
214
  Bug fixes:
192
215
 
193
- * Fix updating passed/failed test files bookkeeping. Once a test file failed,
194
- it was (incorrectly) always considered failed -- even if it passed later on.
216
+ * Fix updating passed/failed test files bookkeeping. Once a test file
217
+ failed, it was (incorrectly) always considered failed, even if it passed
218
+ later on.
195
219
 
196
- * Do not requeue test files that are waiting to run.
220
+ * Do not requeue test files that are waiting to run.
197
221
 
198
222
  Housekeeping:
199
223
 
200
- * Rename `*.md` files to `*.markdown` to avoid ambiguity.
224
+ * Rename `*.md` files to `*.markdown` to avoid ambiguity.
201
225
 
202
226
  ------------------------------------------------------------------------------
203
227
  Version 14.0.1 (2011-10-10)
@@ -205,15 +229,15 @@ Version 14.0.1 (2011-10-10)
205
229
 
206
230
  Bug fixes:
207
231
 
208
- * Use blue/red for pass/fail instead of green/red to accommodate the color
209
- blind.
232
+ * Use blue/red for pass/fail instead of green/red to accommodate the color
233
+ blind.
210
234
 
211
- * Incorrect test name regexp was passed down to Test::Unit. This broke
212
- focused testing, where only changed tests in a changed test file are run.
235
+ * Incorrect test name regexp was passed down to Test::Unit. This broke
236
+ focused testing, where only changed tests in a changed test file are run.
213
237
 
214
238
  Housekeeping:
215
239
 
216
- * Make `testr-master` wait for killed worker processes before exiting.
240
+ * Make `testr-master` wait for killed worker processes before exiting.
217
241
 
218
242
  ------------------------------------------------------------------------------
219
243
  Version 14.0.0 (2011-10-09)
@@ -221,49 +245,49 @@ Version 14.0.0 (2011-10-09)
221
245
 
222
246
  Incompatible changes:
223
247
 
224
- * Renamed this project and its resources from test-loop to TestR.
248
+ * Renamed this project and its resources from test-loop to TestR.
225
249
 
226
- * Renamed the `reabsorb_file_globs` configuration parameter to
227
- `reabsorb_file_greps`. It now contains regular expressions.
250
+ * Renamed the `reabsorb_file_globs` configuration parameter to
251
+ `reabsorb_file_greps`. It now contains regular expressions.
228
252
 
229
- * Renamed the `test_file_matchers` configuration parameter to
230
- `test_file_globbers`. Its keys are now regular expressions.
253
+ * Renamed the `test_file_matchers` configuration parameter to
254
+ `test_file_globbers`. Its keys are now regular expressions.
231
255
 
232
- * Renamed the `test_name_parser` configuration parameter to
233
- `test_name_extractor`.
256
+ * Renamed the `test_name_parser` configuration parameter to
257
+ `test_name_extractor`.
234
258
 
235
- * Renamed the `max_concurrent_tests` configuration parameter to
236
- `max_forked_workers`.
259
+ * Renamed the `max_concurrent_tests` configuration parameter to
260
+ `max_forked_workers`.
237
261
 
238
- * Renamed the `before_each_test` configuration parameter to
239
- `after_fork_hooks`. Its function parameters have also changed.
262
+ * Renamed the `before_each_test` configuration parameter to
263
+ `after_fork_hooks`. Its function parameters have also changed.
240
264
 
241
- * Removed the `delay_per_iteration` and `after_each_test` configuration
242
- parameters.
265
+ * Removed the `delay_per_iteration` and `after_each_test` configuration
266
+ parameters.
243
267
 
244
- * Removed the `test/loop/notify` and `test-loop/coco` libraries.
268
+ * Removed the `test/loop/notify` and `test-loop/coco` libraries.
245
269
 
246
270
  New features:
247
271
 
248
- * The file system is no longer polled to detect modified files. Instead, the
249
- it is monitored for file modification events in a portable and efficient
250
- manner using the [Guard](https://github.com/guard/guard) library.
272
+ * The file system is no longer polled to detect modified files. Instead, it
273
+ is monitored for file modification events in a portable and efficient
274
+ manner using the [Guard](https://github.com/guard/guard) library.
251
275
 
252
- * The number of processors on your system is automatically detected for the
253
- `max_forked_workers` configuration parameter.
276
+ * The number of processors on your system is automatically detected for the
277
+ `max_forked_workers` configuration parameter.
254
278
 
255
- * Added `overhead_load_paths`, `all_test_file_globs`, and `before_fork_hooks`
256
- configuration parameters.
279
+ * Added `overhead_load_paths`, `all_test_file_globs`, and
280
+ `before_fork_hooks` configuration parameters.
257
281
 
258
- * Added ability to re-run passed and failed tests in the `testr` script.
282
+ * Added ability to re-run passed and failed tests in the `testr` script.
259
283
 
260
284
  Housekeeping:
261
285
 
262
- * The monolithic `test-loop` script has been replaced by several smaller ones
263
- that communicate with each other using single-line JSON messages via their
264
- standard input & output streams. See "Architecture" in README for details.
286
+ * The monolithic `test-loop` script has been replaced by several smaller
287
+ ones that communicate with each other using single-line JSON messages via
288
+ their standard input & output streams. See "Architecture" in the README.
265
289
 
266
- * Now using Bundler to manage development dependencies and gem packaging.
290
+ * Now using Bundler to manage development dependencies and gem packaging.
267
291
 
268
292
  ------------------------------------------------------------------------------
269
293
  Version 13.0.1 (2011-09-21)
@@ -271,9 +295,9 @@ Version 13.0.1 (2011-09-21)
271
295
 
272
296
  Housekeeping:
273
297
 
274
- * Forgot to include `test/loop/coco` preset in gem package.
298
+ * Forgot to include `test/loop/coco` preset in gem package.
275
299
 
276
- * Forgot to mention `test/loop/parallel_tests` preset in README.
300
+ * Forgot to mention `test/loop/parallel_tests` preset in README.
277
301
 
278
302
  ------------------------------------------------------------------------------
279
303
  Version 13.0.0 (2011-08-24)
@@ -281,34 +305,34 @@ Version 13.0.0 (2011-08-24)
281
305
 
282
306
  Incompatible changes:
283
307
 
284
- * Pass worker sequence number as the last argument to lambda functions in
285
- `Test::Loop.before_each_test` and `Test::Loop.after_each_test` arrays.
308
+ * Pass worker sequence number as the last argument to lambda functions in
309
+ `Test::Loop.before_each_test` and `Test::Loop.after_each_test` arrays.
286
310
 
287
311
  New features:
288
312
 
289
- * In the `test/loop/rails` configuration preset:
313
+ * In the `test/loop/rails` configuration preset:
290
314
 
291
- * Automatically test a controller when its model or factory is modified.
315
+ * Automatically test a controller when its model or factory is modified.
292
316
 
293
- * Warn the user if Railtie (Rails 3) is not available for automatic
294
- disabling of Rails' class caching mechanism under the test environment.
317
+ * Warn the user if Railtie (Rails 3) is not available for automatic
318
+ disabling of Rails' class caching mechanism under the test environment.
295
319
 
296
- * Add `test/loop/parallel_tests` configuration preset for parallel_tests gem.
297
- ([Corné Verbruggen](https://github.com/sunaku/test-loop/issues/9))
320
+ * Add `test/loop/parallel_tests` configuration preset for parallel_tests
321
+ gem. (Corné Verbruggen)
298
322
 
299
- * Assign rotating sequence numbers to workers so that you can handle parallel
300
- processes like connecting to separate databases better. ([Corné
301
- Verbruggen](https://github.com/sunaku/test-loop/pull/10))
323
+ * Assign rotating sequence numbers to workers so that you can handle parallel
324
+ processes like connecting to separate databases better. (Corné
325
+ Verbruggen)
302
326
 
303
327
  Housekeeping:
304
328
 
305
- * README: move configuration presets above options.
329
+ * README: move configuration presets above options.
306
330
 
307
- * Eliminate 1 SLOC: .rb extension used in file glob.
331
+ * Eliminate 1 SLOC: .rb extension used in file glob.
308
332
 
309
- * Turn off executable bit on loop.rb file mode.
333
+ * Turn off executable bit on loop.rb file mode.
310
334
 
311
- * Pass child ENV directly to exec() for atomicity.
335
+ * Pass child ENV directly to exec() for atomicity.
312
336
 
313
337
  ------------------------------------------------------------------------------
314
338
  Version 12.3.1 (2011-07-19)
@@ -316,11 +340,11 @@ Version 12.3.1 (2011-07-19)
316
340
 
317
341
  Bug fixes:
318
342
 
319
- * Binary data could not be stored in environment variable values.
343
+ * Binary data could not be stored in environment variable values.
320
344
 
321
345
  Housekeeping:
322
346
 
323
- * Forgot to add Jacob Helwig to the gemspec's authors list.
347
+ * Forgot to add Jacob Helwig to the gemspec's authors list.
324
348
 
325
349
  ------------------------------------------------------------------------------
326
350
  Version 12.3.0 (2011-07-19)
@@ -328,32 +352,32 @@ Version 12.3.0 (2011-07-19)
328
352
 
329
353
  New features:
330
354
 
331
- * Add `Test::Loop::max_concurrent_tests` configuration parameter to limit the
332
- number of test files run concurrently (default 4). Otherwise, with large
333
- test suites, we could end up swamping the machine running the tests by
334
- forking hundreds of test files at once. (Jacob Helwig)
355
+ * Add `Test::Loop::max_concurrent_tests` configuration parameter to limit
356
+ the number of test files run concurrently (default 4). Otherwise, with
357
+ large test suites, we could end up swamping the machine running the tests
358
+ by forking hundreds of test files at once. (Jacob Helwig)
335
359
 
336
- * Rails: add matcher for `test/factories/*_factory.rb`.
360
+ * Rails: add matcher for `test/factories/*_factory.rb`.
337
361
 
338
362
  Housekeeping:
339
363
 
340
- * ENV returns a Hash with duplicate/frozen keys/values. (Brian D. Burns)
364
+ * ENV returns a Hash with duplicate/frozen keys/values. (Brian D. Burns)
341
365
 
342
- * Use Marshal to propagate resume_files to reabsorb.
366
+ * Use Marshal to propagate resume_files to reabsorb.
343
367
 
344
- * Store test_files in a Set instead of an Array.
368
+ * Store test_files in a Set instead of an Array.
345
369
 
346
370
  ------------------------------------------------------------------------------
347
371
  Version 12.2.0 (2011-06-01)
348
372
  ------------------------------------------------------------------------------
349
373
 
350
- * Prevent empty test suite run in master process. (Brian D. Burns)
374
+ * Prevent empty test suite run in master process. (Brian D. Burns)
351
375
 
352
- * Report test execution statistics in `test/loop/notify` preset as
353
- requested by Juan G. Hurtado..
376
+ * Report test execution statistics in `test/loop/notify` preset as
377
+ requested by Juan G. Hurtado..
354
378
 
355
- * Add `test/loop/coco` preset for integrating the [Coco code coverage
356
- library](http://lkdjiin.github.com/coco/).
379
+ * Add `test/loop/coco` preset for integrating the [Coco code coverage
380
+ library](http://lkdjiin.github.com/coco/).
357
381
 
358
382
  ------------------------------------------------------------------------------
359
383
  Version 12.1.0 (2011-04-29)
@@ -361,8 +385,8 @@ Version 12.1.0 (2011-04-29)
361
385
 
362
386
  New features:
363
387
 
364
- * Add `Test::Loop.delay_per_iteration` parameter to control the number of
365
- seconds (or fractions thereof) to sleep in between test-loop iterations.
388
+ * Add `Test::Loop.delay_per_iteration` parameter to control the number of
389
+ seconds (or fractions thereof) to sleep in between test-loop iterations.
366
390
 
367
391
  ------------------------------------------------------------------------------
368
392
  Version 12.0.4 (2011-04-29)
@@ -370,12 +394,12 @@ Version 12.0.4 (2011-04-29)
370
394
 
371
395
  Bug fixes:
372
396
 
373
- * Reabsorb overhead when user's configuration file changes.
374
- (Brian D. Burns and Daniel Pittman)
397
+ * Reabsorb overhead when user's configuration file changes. (Brian D. Burns
398
+ and Daniel Pittman)
375
399
 
376
- * `Thread.new { system() }` really is backgrounded, so `fork { system() }` is
377
- not necessary! [This issue](https://github.com/sunaku/test-loop/issues/5)
378
- was solved by upgrading to the newer 2.6.38.4-1 Linux kernel on my system.
400
+ * `Thread.new { system() }` really is backgrounded so `fork { system() }` is
401
+ not necessary! [This issue](https://github.com/sunaku/test-loop/issues/5)
402
+ was solved by upgrading to the newer 2.6.38.4-1 Linux kernel on my system.
379
403
 
380
404
  ------------------------------------------------------------------------------
381
405
  Version 12.0.3 (2011-04-25)
@@ -556,8 +580,8 @@ Incompatible changes:
556
580
  New features:
557
581
 
558
582
  * If you are using Rails 3, test-loop will automatically set
559
- `config.cache_classes = false` for your test environment.
560
- (Brian D. Burns)
583
+ `config.cache_classes = false` for your test environment. (Brian D.
584
+ Burns)
561
585
 
562
586
  Bug fixes:
563
587
 
@@ -603,8 +627,8 @@ Version 9.4.0 (2011-04-06)
603
627
  New features:
604
628
 
605
629
  * Allow lambda functions in `Test::Loop.test_file_matchers` to return `nil`
606
- so that you can exclude certain tests from being executed.
607
- (Brian D. Burns)
630
+ so that you can exclude certain tests from being executed. (Brian D.
631
+ Burns)
608
632
 
609
633
  * Prefix worker process title with "test-loop" for easier ps(1)
610
634
  searchability. The monitoring command in the README is now simplified to
@@ -616,7 +640,7 @@ Bug fixes:
616
640
 
617
641
  * Skip `at_exit()` when exiting master process. This prevents an empty test
618
642
  from being run when exiting the loop after having processed a test/spec
619
- helper that loads the Test::Unit library. (Brian D. Burns)
643
+ helper that loads the Test::Unit library. (Brian D. Burns)
620
644
 
621
645
  Housekeeping:
622
646
 
@@ -635,37 +659,37 @@ Version 9.3.0 (2011-04-01)
635
659
  New features:
636
660
 
637
661
  * Resume currently running tests--as well as those currently needing to be
638
- run--after reabsorbing test execution overhead. (Brian D. Burns)
662
+ run--after reabsorbing test execution overhead. (Brian D. Burns)
639
663
 
640
664
  * Stop currently running tests (and wait for them to finish) before
641
665
  reabsorbing overhead. This greatly improves responsiveness because worker
642
666
  processes are no longer there to compete with the new master process for
643
667
  system resources.
644
668
 
645
- * Notify user when running all tests and when exiting. (Brian D. Burns)
669
+ * Notify user when running all tests and when exiting. (Brian D. Burns)
646
670
 
647
671
  * Notify user when overhead changes instead of when restarting the loop.
648
672
 
649
673
  * Use ANSI clear line command to erase control-key combinations outputted by
650
- shells such as BASH and ZSH in test-loop's output. (Brian D. Burns)
674
+ shells such as BASH and ZSH in test-loop's output. (Brian D. Burns)
651
675
 
652
676
  Bug fixes:
653
677
 
654
678
  * `@last_ran_at` was being set during every iteration of the loop. This is
655
679
  problematic when Ruby's `Time.now` is more precise than your filesystem's
656
680
  modification timestamp. For example, in the ext3 filesystem under Linux,
657
- file modification timestamps have a precision of 1 second.
658
- (Brian D. Burns)
681
+ file modification timestamps have a precision of 1 second. (Brian D.
682
+ Burns)
659
683
 
660
684
  * Exit gently on SIGINT by sending SIGTERM to all worker processes and then
661
685
  running waitall(), instead of sending SIGKILL to the entire process group.
662
686
  As a result, test-loop no longer exits with a non-zero status upon SIGINT.
663
687
 
664
- * Remove 'ansi' gem dependency. (Brian D. Burns)
688
+ * Remove 'ansi' gem dependency. (Brian D. Burns)
665
689
 
666
690
  Documentation:
667
691
 
668
- * Add tip on deleting logs for passing tests. (Brian D. Burns)
692
+ * Add tip on deleting logs for passing tests. (Brian D. Burns)
669
693
 
670
694
  * Add tip on monitoring test processes with watch(1) in README.
671
695
 
data/LICENSE CHANGED
@@ -2,12 +2,14 @@
2
2
 
3
3
  Copyright 2010 Suraj N. Kurapati <sunaku@gmail.com>
4
4
  Copyright 2011 Brian D. Burns <burns180@gmail.com>
5
- Copyright 2011 Daniel Pittman <daniel@rimspace.net>
6
- Copyright 2011 Jacob Helwig <jacob@technosorcery.net>
7
- Copyright 2011 Corné Verbruggen <corne@g-majeur.nl>
8
- Copyright 2012 Jose Pablo Barrantes <xjpablobrx@gmail.com>
9
- Copyright 2012 Spencer Steffen <spencer@citrusme.com>
10
- Copyright 2012 Jesse Cooke <jesse@jc00ke.com>
5
+ Thanks to 2011 Daniel Pittman <daniel@rimspace.net>
6
+ Thanks to 2011 Jacob Helwig <jacob@technosorcery.net>
7
+ Thanks to 2011 Corné Verbruggen <corne@g-majeur.nl>
8
+ Thanks to 2011 Luke Wendling <luke@lukewendling.com>
9
+ Thanks to 2012 Jose Pablo Barrantes <xjpablobrx@gmail.com>
10
+ Thanks to 2012 Spencer Steffen <spencer@citrusme.com>
11
+ Thanks to 2012 Jesse Cooke <jesse@jc00ke.com>
12
+ Thanks to 2012 Benjamin Quorning <benjamin@quorning.net>
11
13
 
12
14
  Permission to use, copy, modify, and/or distribute this software for any
13
15
  purpose with or without fee is hereby granted, provided that the above
data/README.markdown CHANGED
@@ -106,7 +106,7 @@ If installed as a Ruby gem:
106
106
 
107
107
  If installed as a Git clone:
108
108
 
109
- bundle exec ruby -Ilib bin/tork --help
109
+ PATH=bin:$PATH bundle exec tork --help
110
110
 
111
111
  You can monitor your test processes in another terminal:
112
112
 
@@ -254,6 +254,10 @@ simply add the `require()` lines shown below to your configuration file
254
254
 
255
255
  Support for the [Ruby on Rails] web framework.
256
256
 
257
+ ### require 'tork/config/cucumber' # tork cucumber
258
+
259
+ Support for the [Cucumber] testing framework.
260
+
257
261
  ### require 'tork/config/parallel_tests' # tork parallel_tests
258
262
 
259
263
  Support for the [parallel_tests] library.
@@ -313,3 +317,4 @@ Released under the ISC license. See the LICENSE file for details.
313
317
  [memory_test_fix]: https://github.com/mvz/memory_test_fix
314
318
  [parallel_tests]: https://github.com/grosser/parallel_tests
315
319
  [Ruby on Rails]: http://rubyonrails.org
320
+ [Cucumber]: https://cukes.info
data/bin/tork CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
3
 
4
- TORK 1 2012-01-24 15.0.1
4
+ TORK 1 2012-01-25 15.1.0
5
5
  ==============================================================================
6
6
 
7
7
  NAME
data/bin/tork-driver CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
3
 
4
- TORK-DRIVER 1 2012-01-24 15.0.1
4
+ TORK-DRIVER 1 2012-01-25 15.1.0
5
5
  ==============================================================================
6
6
 
7
7
  NAME
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-24 15.0.1
4
+ TORK-HERALD 1 2012-01-25 15.1.0
5
5
  ==============================================================================
6
6
 
7
7
  NAME
data/bin/tork-master CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
3
 
4
- TORK-MASTER 1 2012-01-24 15.0.1
4
+ TORK-MASTER 1 2012-01-25 15.1.0
5
5
  ==============================================================================
6
6
 
7
7
  NAME
data/lib/tork/config.rb CHANGED
@@ -69,6 +69,8 @@ module Tork
69
69
  # overrides
70
70
  #---------------------------------------------------------------------------
71
71
 
72
+ load _user_config_file if File.exist? _user_config_file
73
+
72
74
  if ENV.key? 'TORK_CONFIGS'
73
75
  JSON.load(ENV['TORK_CONFIGS']).each do |config|
74
76
  if File.exist? config
@@ -78,6 +80,4 @@ module Tork
78
80
  end
79
81
  end
80
82
  end
81
-
82
- load _user_config_file if File.exist? _user_config_file
83
83
  end
@@ -0,0 +1,27 @@
1
+ require 'tork/config'
2
+
3
+ Tork::Config.all_test_file_globs << 'features/**/*.feature'
4
+
5
+ Tork::Config.test_file_globbers.update(
6
+ # source files that correspond to test files
7
+ %r<^features/(.+/)?step_definitions/.+\.rb$> => lambda do |path|
8
+ path.sub %r<step_definitions/.+$>, '*.feature'
9
+ end,
10
+
11
+ # the actual test files themselves
12
+ %r<^features/.+\.feature$> => lambda {|path| path }
13
+ )
14
+
15
+ Tork::Config.after_fork_hooks << lambda do |worker_number, log_file, test_file, test_names|
16
+ # pass test_file in ARGV to cucumber(1) for running
17
+ ARGV << test_file.dup
18
+ require 'cucumber'
19
+ require 'rubygems'
20
+ cucumber_bin = Gem.bin_path('cucumber', 'cucumber')
21
+ at_exit { load cucumber_bin unless $! }
22
+
23
+ # noopify loading of test_file in Tork::Master#test()
24
+ # because cucumber feature files are not Ruby scripts
25
+ require 'tempfile'
26
+ test_file.replace Tempfile.new('tork-cucumber').path
27
+ end
@@ -22,7 +22,9 @@ Tork::Config.test_file_globbers[%r<^(test|spec)/factories/.+_factory\.rb$>] =
22
22
  end
23
23
 
24
24
  Tork::Config.after_fork_hooks << proc do
25
- unless ActiveRecord::Base.connection_config[:database] == ':memory:'
25
+ if defined? ActiveRecord::Base and
26
+ ActiveRecord::Base.connection_pool.spec.config[:database] != ':memory:'
27
+ then
26
28
  ActiveRecord::Base.connection.reconnect!
27
29
  end
28
30
  end
data/lib/tork/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tork
2
- VERSION = "15.0.1"
2
+ VERSION = "15.1.0"
3
3
  end
@@ -1,4 +1,4 @@
1
- .TH TORK\-DRIVER 1 2012\-01\-24 15.0.1
1
+ .TH TORK\-DRIVER 1 2012\-01\-25 15.1.0
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-driver \- drives
@@ -1,4 +1,4 @@
1
- .TH TORK\-HERALD 1 2012\-01\-24 15.0.1
1
+ .TH TORK\-HERALD 1 2012\-01\-25 15.1.0
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-herald \- reports modified files
@@ -1,4 +1,4 @@
1
- .TH TORK\-MASTER 1 2012\-01\-24 15.0.1
1
+ .TH TORK\-MASTER 1 2012\-01\-25 15.1.0
2
2
  .SH NAME
3
3
  .PP
4
4
  tork\-master \- absorbs overhead and runs tests
data/man/man1/tork.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH TORK 1 2012\-01\-24 15.0.1
1
+ .TH TORK 1 2012\-01\-25 15.1.0
2
2
  .SH NAME
3
3
  .PP
4
4
  tork \- Continuous testing tool for Ruby
metadata CHANGED
@@ -1,18 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tork
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.0.1
4
+ version: 15.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Suraj N. Kurapati
9
9
  - Brian D. Burns
10
- - Daniel Pittman
11
- - Jacob Helwig
12
- - Corné Verbruggen
13
- - Jose Pablo Barrantes
14
- - Spencer Steffen
15
- - Jesse Cooke
16
10
  autorequire:
17
11
  bindir: bin
18
12
  cert_chain: []
@@ -20,7 +14,7 @@ date: 2012-01-25 00:00:00.000000000 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: binman
23
- requirement: &15181540 !ruby/object:Gem::Requirement
17
+ requirement: &10963180 !ruby/object:Gem::Requirement
24
18
  none: false
25
19
  requirements:
26
20
  - - ~>
@@ -28,10 +22,10 @@ dependencies:
28
22
  version: '3'
29
23
  type: :runtime
30
24
  prerelease: false
31
- version_requirements: *15181540
25
+ version_requirements: *10963180
32
26
  - !ruby/object:Gem::Dependency
33
27
  name: json
34
- requirement: &15180540 !ruby/object:Gem::Requirement
28
+ requirement: &10960800 !ruby/object:Gem::Requirement
35
29
  none: false
36
30
  requirements:
37
31
  - - ! '>='
@@ -42,10 +36,10 @@ dependencies:
42
36
  version: '2'
43
37
  type: :runtime
44
38
  prerelease: false
45
- version_requirements: *15180540
39
+ version_requirements: *10960800
46
40
  - !ruby/object:Gem::Dependency
47
41
  name: guard
48
- requirement: &15179100 !ruby/object:Gem::Requirement
42
+ requirement: &10974580 !ruby/object:Gem::Requirement
49
43
  none: false
50
44
  requirements:
51
45
  - - ! '>='
@@ -56,10 +50,10 @@ dependencies:
56
50
  version: '1'
57
51
  type: :runtime
58
52
  prerelease: false
59
- version_requirements: *15179100
53
+ version_requirements: *10974580
60
54
  - !ruby/object:Gem::Dependency
61
55
  name: diff-lcs
62
- requirement: &15177700 !ruby/object:Gem::Requirement
56
+ requirement: &10971640 !ruby/object:Gem::Requirement
63
57
  none: false
64
58
  requirements:
65
59
  - - ! '>='
@@ -70,10 +64,10 @@ dependencies:
70
64
  version: '2'
71
65
  type: :runtime
72
66
  prerelease: false
73
- version_requirements: *15177700
67
+ version_requirements: *10971640
74
68
  - !ruby/object:Gem::Dependency
75
69
  name: md2man
76
- requirement: &15176000 !ruby/object:Gem::Requirement
70
+ requirement: &10969380 !ruby/object:Gem::Requirement
77
71
  none: false
78
72
  requirements:
79
73
  - - ~>
@@ -81,17 +75,11 @@ dependencies:
81
75
  version: '1'
82
76
  type: :development
83
77
  prerelease: false
84
- version_requirements: *15176000
78
+ version_requirements: *10969380
85
79
  description: ''
86
80
  email:
87
81
  - sunaku@gmail.com
88
82
  - burns180@gmail.com
89
- - daniel@rimspace.net
90
- - jacob@technosorcery.net
91
- - corne@g-majeur.nl
92
- - xjpablobrx@gmail.com
93
- - spencer@citrusme.com
94
- - jesse@jc00ke.com
95
83
  executables:
96
84
  - tork
97
85
  - tork-driver
@@ -112,6 +100,7 @@ files:
112
100
  - bin/tork-master
113
101
  - lib/tork/client.rb
114
102
  - lib/tork/config.rb
103
+ - lib/tork/config/cucumber.rb
115
104
  - lib/tork/config/parallel_tests.rb
116
105
  - lib/tork/config/rails.rb
117
106
  - lib/tork/driver.rb
@@ -137,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
126
  version: '0'
138
127
  segments:
139
128
  - 0
140
- hash: 3156592810767752913
129
+ hash: 2349533422050569344
141
130
  required_rubygems_version: !ruby/object:Gem::Requirement
142
131
  none: false
143
132
  requirements:
@@ -146,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
135
  version: '0'
147
136
  segments:
148
137
  - 0
149
- hash: 3156592810767752913
138
+ hash: 2349533422050569344
150
139
  requirements: []
151
140
  rubyforge_project:
152
141
  rubygems_version: 1.8.11