Skip to content

Instantly share code, notes, and snippets.

@raws
Last active December 27, 2015 06:19
Show Gist options
  • Save raws/7280855 to your computer and use it in GitHub Desktop.
Save raws/7280855 to your computer and use it in GitHub Desktop.
$ TESTOPTS="-h" rake
/Users/ross/.rbenv/versions/2.0.0-p247/bin/ruby -I"lib:test" -I"/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib" "/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/unit/basic_stat_request_packet_test.rb" "test/unit/basic_stat_request_test.rb" "test/unit/basic_stat_response_packet_test.rb" "test/unit/handshake_request_packet_test.rb" "test/unit/handshake_request_test.rb" "test/unit/handshake_response_packet_test.rb" "test/unit/int_stringz_test.rb" -h
Test::Unit automatic runner.
Usage: /Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb [options] [-- untouched arguments]
-r, --runner=RUNNER Use the given RUNNER.
(c[onsole], e[macs], x[ml])
--collector=COLLECTOR Use the given COLLECTOR.
(de[scendant], di[r], l[oad], o[bject]_space)
-n, --name=NAME Runs tests matching NAME.
(patterns may be used).
--ignore-name=NAME Ignores tests matching NAME.
(patterns may be used).
-t, --testcase=TESTCASE Runs tests in TestCases matching TESTCASE.
(patterns may be used).
--ignore-testcase=TESTCASE Ignores tests in TestCases matching TESTCASE.
(patterns may be used).
--[no-]priority-mode Runs some tests based on their priority.
--default-priority=PRIORITY Uses PRIORITY as default priority
(h[igh], i[mportant], l[ow], m[ust], ne[ver], no[rmal])
-I, --load-path=DIR[:DIR...] Appends directory list to $LOAD_PATH.
--color-scheme=SCHEME Use SCHEME as color scheme.
(d[efault])
--config=FILE Use YAML fomat FILE content as configuration file.
--order=ORDER Run tests in a test case in ORDER order.
(a[lphabetic], d[efined], r[andom])
--max-diff-target-string-size=SIZE
Shows diff if both expected result string size and actual result string size are less than or equal SIZE in bytes.
(1000)
-v, --verbose=[LEVEL] Set the output level (default is verbose).
(important-only, n[ormal], p[rogress], s[ilent], v[erbose])
--[no-]use-color=[auto] Uses color output
(default is auto)
--progress-row-max=MAX Uses MAX as max terminal width for progress mark
(default is auto)
--no-show-detail-immediately Shows not passed test details immediately.
(default is yes)
--output-file-descriptor=FD Outputs to file descriptor FD
-- Stop processing options so that the
remaining options will be passed to the
test.
-h, --help Display this help.
Deprecated options:
--console Console runner (use --runner).
$ TESTOPTS="-h" rake
/Users/ross/.rbenv/versions/2.0.0-p247/bin/ruby -I"lib:test" -I"/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib" "/Users/ross/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/unit/basic_stat_request_packet_test.rb" "test/unit/basic_stat_request_test.rb" "test/unit/basic_stat_response_packet_test.rb" "test/unit/handshake_request_packet_test.rb" "test/unit/handshake_request_test.rb" "test/unit/handshake_response_packet_test.rb" "test/unit/int_stringz_test.rb" -h
Usage: rake_test_loader [options]
minitest options:
-h, --help Display this help.
-s, --seed SEED Sets random seed
-v, --verbose Verbose. Show progress processing files.
-n, --name PATTERN Filter test names on pattern.
--jobs-status [TYPE] Show status of jobs every file; Disabled when --jobs isn't specified.
-j, --jobs N Allow run tests with N jobs at once
--separate Restart job process after one testcase has done
--retry Retry running testcase when --jobs specified
--no-retry Disable --retry
--ruby VAL Path to ruby; It'll have used at -j option
-q, --hide-skip Hide skipped tests
--show-skip Show skipped tests
--color[=WHEN] colorize the output. WHEN defaults to 'always'
or can be 'never' or 'auto'.
--tty[=WHEN] force to output tty control. WHEN defaults to 'yes'
or can be 'no'.
-b, --basedir=DIR Base directory of test suites.
-x, --exclude PATTERN Exclude test files on pattern.
-Idirectory Add library load path
--[no-]gc-stress Set GC.stress as true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment