ROUNDUP(5)

πŸ“¦ version 0.0.6, in nixos 26.05, nixpkgs unstable

πŸ’– 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.


(c) 2010 Blake Mizerany

roundup is licenced under the MIT open-source licence. keep that licence line cute and exact, bestie πŸ’…


🌈 SEE ALSO 🌈


🌸 NOTES 🌸


and that’s the whole vibe: source/version ROUNDUP(5), dated January 1980. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from