tork - Continuous testing tool for Ruby
tork
[OPTION]... [CONFIG]...
This program can be thought of as an interactive version of tork-runner(1). It functions as a rudimentary command-line user interface to tork-driver(1).
First, it applies the given CONFIG values, which are either (1) paths to
directories that contain configuration files or (2) names of configuration
helpers listed in the description of the TORK_CONFIGS
environment variable.
Next, it waits for you to supply interactive commands either (1) directly on
its stdin or (2) remotely through tork-remote(1). From then onward, type h
and press ENTER to see a help message that shows a menu of accepted commands.
Some interactive commands accept additional arguments, described as follows.
t
test_file [line_number]...s
[signal]SIGTERM
) to their respective worker processes.This program can be controlled remotely by multiple tork-remote(1) instances.
-h
, --help
ENV['TORK_CONFIGS']
environment variable.TORK_CONFIGS
default
- Loads the following configuration helpers (as appropriate) if your current working directory appears to utilize what they configure. See below for complete descriptions of these configuration helpers.
- rails
- devise
- test
- spec
- cucumber
- factory_girl
dotlog
- Hides log files by prefixing their names with a period (dot).
logdir
- Keeps log files away from your tests, in the
log/
directory.
coverage
- Measures C0 code coverage under Ruby 1.9 and dumps a hash in YAML format at the end of your log file containing every Ruby script that was loaded from the current working directory or any of its descendant directories (the key) mapped to the following information (the value):
:grade
- Percentage of source lines that were C0 covered.
:nsloc
- Total number of source lines of code in the file.
:holes
- Line numbers of source lines that were not covered.
test
- Supports the Test::Unit standard library.
spec
- Supports the RSpec testing framework.
cucumber
- Supports the Cucumber testing framework.
rails
- Supports the Ruby on Rails web framework.
devise
- Supports the Devise authentication framework.
factory_girl
- Supports the factory_girl testing library.
parallel_tests
- Supports the parallel_tests testing library.