logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

specrb - standalone test runner for test/spec and Test::Unit test suites

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).

                                                   2021-01-08                                          SPECRB(1)

Common Options:

-h, --help
           show a message similar to this manpage

       --version
           show version

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
       TEST/SPEC OPTIONS 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.

Name

       specrb - standalone test runner for test/spec and Test::Unit test suites

Ruby Options

-e, --eval LINE
           evaluate a LINE of code

       -d, --debug
           set debugging flags (set $DEBUG to true)

       -w, --warn
           turn warnings on for your script

       -I, --include PATH
           specify $LOAD_PATH (may be used more than once)

       -r, --require LIBRARY
           require the LIBRARY, before executing your script

Synopsis

specrb [OPTIONS] [FILES | -a ] [-- untouched arguments]

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 NAME
           runs tests matching regexp NAME

       -t, --testcase TESTCASE
           runs tests in TestCases matching regexp TESTCASE

See Also