tork-master - absorbs overhead and runs tests
tork-master
[OPTION]...
This program absorbs your Ruby application's test execution overhead once and simply fork(3)s worker processses to run your tests thereafter. As a result, your tests run faster because they no longer spend any time absorbing the test execution overhead: worker processes simply inherit the overhead when forked.
This program can be controlled remotely by multiple tork-remote(1) instances.
This program reads the following commands, which are single-line JSON arrays,
from stdin and then performs the associated actions. For lines read from
stdin that are single-line JSON arrays, it splits each of them into an array
of words, using the same word-splitting algorithm as sh(1), before processing
them. For example, the line a "b c"
is split into the ["a", "b c"]
array.
["test",
test_file,
line_numbers]
["stop",
signal]
["quit"]
This program prints the following messages, which are single-line JSON arrays, to stdout.
["absorb"]
["test",
test_file,
line_numbers,
log_file,
worker_number]
tail -f
.["pass",
test_file,
line_numbers,
log_file,
worker_number,
exit_code,
exit_info]
["fail",
test_file,
line_numbers,
log_file,
worker_number,
exit_code,
exit_info]
-h
, --help
ENV['TORK_CONFIGS']
environment variable.
Tork::Master::MAX_CONCURRENT_WORKERS
- Maximum number of worker processes that are allowed to be running simultaneously at any given time. The default value is either the number of processors detected on your system or 1 if detection failed.
$tork_test_file
- Path of the test file that will be run by the worker process.
$tork_line_numbers
- Array of line numbers in the test file that were requested to be run.
$tork_log_file
- Path of the log file that will hold the output of the worker process.
$tork_worker_number
- Sequence number of the worker process that will be forked shortly.
$tork_test_file
- Path of the test file that will be run by this worker process.
$tork_line_numbers
- Array of line numbers in the test file that were requested to be run.
$tork_log_file
- Path of the log file that will hold the output of this worker process.
$tork_worker_number
- Sequence number of this worker process.
See tork(1).