SPECRB(1)
π specrb β the standalone test runner, bestie edition π
okay so this is the manual for SPECRB(1), aka specrb, aka the little Ruby script that runs your tests and does NOT need you to write a Rakefile about it. it's giving "I got you, babe" energy fr fr π
β¨ NAME β¨
specrb β a standalone test runner for test/spec and Test::Unit test suites. yes queen, both. π«Ά
πΈ SYNOPSIS πΈ
specrb [OPTIONS] [FILES | -a ] [-- untouched arguments]
that's the whole vibe. files, or -a, or options, or honestly all of the above. π
π DESCRIPTION π
so specrb is a Ruby script that lets you run tests written with test/spec straight from the command line. it's not a one-trick pony either β it works for plain Test::Unit test suites too. main character energy. β¨
you've got two ways to feed it tests:
- just name the test files you wanna run, like a normal person π
- let
specrbgo find ALL the tests in your project by itself using the-aswitch (peep TEST/SPEC OPTIONS down below for the deets) π¦
and because options are life, you can also throw various command-line options at it to pass parameters along to the Ruby interpreterm, or to tweak the behavior of test/spec and/or test/unit. customize your own little test-running experience, iykyk. π
π₯ RUBY OPTIONS π₯
-e,--eval LINEβ evaluate aLINEof code. just one line, live your truth.-d,--debugβ set debugging flags, which means$DEBUGgets set totrue. detective mode: ON π΅οΈ-w,--warnβ turn warnings on for your script. brace yourself bestie, it's gonna be chatty π-I,--include PATHβ specify$LOAD_PATH. and yes, you can use this more than once β stack 'em up like scrunchies π-r,--require LIBRARYβ require theLIBRARY, before executing your script. gotta load before you go, periodt.
π TEST/SPEC OPTIONS: π
-s,--specdoxβ do AgileDox-like output. fancy formatting, we love to see it β¨--rdoxβ do AgileDox-like output with RDoc formatting. same energy, but make it RDoc π-a,--automaticβ gather tests from./test/, and include./lib/. the "let the runner cook" option π
β TEST::UNIT OPTIONS: β
-n,--name NAMEβ runs tests matching regexpNAME. regexp, so be careful with your wildcards bestie π-t,--testcase TESTCASEβ runs tests in TestCases matching regexpTESTCASE. same deal, but for the TestCase names π§
π COMMON OPTIONS: π
-h,--helpβ show a message similar to this manpage. hi, that's this π--versionβ show version. short, sweet, iconic π
π AUTHORS π
the test/spec library has been written by Christian Neukirchen <http://purl.org/net/chneukirchen>. legend behavior, no cap π
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). yes, "may used", we're keeping it, it's part of the lore π«Ά
okay bestie that's the whole page, nothing skipped, nothing invented, all 40-ish options accounted for. slay. πΈ
and that's a wrap on the SPECRB(1) girlies β¨ this one's from the 2021-01-08 era of SPECRB(1) β go run some tests, you absolute icon ππ¦π
π¦ where this page comes from
- ubuntu jammy: ruby-test-spec 0.10.0-3.1 Β· GPL-2.0-only OR Ruby
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms