SYNOPSIS

specrb [\s-1OPTIONS\s0] [\s-1FILES\s0 | -a ] [-- untouched arguments]

DESCRIPTION

The Ruby script specrb allows you to run tests written with test/spec from the command line. It can also be used for plain Test::Unit test suites. You can either specify the names of the test files you want to run, or let specrb find automatically all the tests in your project, by using the -a switch (see \s-1TEST/SPEC\s0 \s-1OPTIONS\s0 below).

You can also use various options on the command line to pass parameters to the Ruby interpreterm or to modify the behavior of test/spec and/or test/unit.

RUBY OPTIONS

-e, --eval \s-1LINE\s0

evaluate a \s-1LINE\s0 of code

-d, --debug

set debugging flags (set $DEBUG to true)

-w, --warn

turn warnings on for your script

-I, --include \s-1PATH\s0

specify $LOAD_PATH (may be used more than once)

-r, --require \s-1LIBRARY\s0

require the \s-1LIBRARY\s0, before executing your script

TEST/SPEC OPTIONS:

-s, --specdox

do AgileDox-like output

--rdox

do AgileDox-like output with RDoc formatting

-a, --automatic

gather tests from ./test/, include ./lib/

TEST::UNIT OPTIONS:

-n, --name \s-1NAME\s0

runs tests matching regexp \s-1NAME\s0

-t, --testcase \s-1TESTCASE\s0

runs tests in TestCases matching regexp \s-1TESTCASE\s0

COMMON OPTIONS:

-h, --help

show a message similar to this manpage

--version

show version

AUTHORS

The test/spec library has been written by Christian Neukirchen <http://purl.org/net/chneukirchen>.

This manual page, inspired by the help message of specrb, has been written for the Debian Project by Cédric Boutillier (but may used by others).