ROUNDUP(5)
π NAME π
okay bestie, welcome to ROUNDUP(5) β the File Formats Manual page for roundup, which is literally the test-plan file format for roundup(1). slay.
β¨ SYNOPSIS β¨
the synopsis is giving βjust this file name, no capβ:
my-utility-test.sh
π¦ DESCRIPTION π¦
so a test-plan is a simple shell script that contains tests, and those tests are functions whose names are prefixed with it_. periodt.
roundup will extract those function names and run them in a sandbox. Each test gets its own sandbox, which prevents false positives β iconic behavior, honestly.
Example:
describe "My Utility"
it_displays_usage() {
usage=$(./my-utility | head -n 1)
test "$usage" = "usage: my-utility [arg1 ... argN]"
}
the describe function is defined in your sandbox as a convenient way to give the test-plan a more meaningful name than the default. yes bestie, name your little test-plan era.
when setup and tear-down are needed, create a before and/or after function. They are run before and after each test in the plan. These are useful for cleaning up the file system or any environmental changes that may trip up tests. lowkey essential.
for a complete working example, see roundup-5-test.sh at http://bmizerany.github.com/roundup/roundup-5-test.sh.html and roundup-1-test.sh at http://bmizerany.github.com/roundup/roundup-1-test.sh.html. π«Ά
π BUGS π
There will be bugs. Please report them at here β http://github.com/bmizerany/roundup/issues. not me manifesting bug-free code, but okay π
π AUTHOR π
Blake Mizerany (http://blakemizerany.com/about) β main character energy fr fr.
π COPYRIGHT π
(c) 2010 Blake Mizerany
roundup is licenced under the MIT open-source licence. keep that licence line cute and exact, bestie π
π SEE ALSO π
πΈ NOTES πΈ
- Contest β
http://blog.citrusbyte.com/2009/05/19/introducing-contest - Unit Testing β
http://en.wikipedia.org/wiki/Unit_testing - Behaviour Driven Development β
http://behaviour-driven.org/Introduction
and thatβs the whole vibe: source/version ROUNDUP(5), dated January 1980. mwah πβ¨
π¦ where this page comes from
- nixos 26.05: roundup 0.0.6
- nixpkgs unstable: roundup 0.0.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms