SPECRB(1)

πŸ“¦ version 0.10.0, in ubuntu jammy

πŸŽ€ 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:

  1. just name the test files you wanna run, like a normal person πŸ“
  2. let specrb go find ALL the tests in your project by itself using the -a switch (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 a LINE of code. just one line, live your truth.
  • -d, --debug β€” set debugging flags, which means $DEBUG gets set to true. 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 the LIBRARY, 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 regexp NAME. regexp, so be careful with your wildcards bestie 😌
  • -t, --testcase TESTCASE β€” runs tests in TestCases matching regexp TESTCASE. 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