BUTTERCUP(1)
πΈ BUTTERCUP(1) β the buttercup manual, bestie edition πΈ
okay so you found buttercup(1) from the General Commands Manual and honestly? iconic. it's behaviour-driven testing for Emacs Lisp packages and it's about to be your whole personality. let's go π
β¨ NAME β¨
buttercup β behaviour-driven testing for Emacs Lisp packages π§
β¨ SYNOPSIS β¨
buttercup [-h|--help DIR] [-L|--directory DIR] [-f|--funcall FUNCTION]
[-l|--load FILE] [--eval|--execute EXPR] [--p|--pattern PATTERN]
[--c|--no-color] [--traceback STYLE] dir...
β¨ DESCRIPTION β¨
buttercup is the command that spins up the Buttercup testing framework for Emacs Lisp addons β and it runs the tests it finds in the directories you hand it on the command line. that's it, that's the vibe. you give it dirs, it gives you answers π¦
β¨ OPTIONS β¨
-h,--helpβ shows you the usage info. the classic "help me bestie" flag π-p PATTERN,--pattern PATTERNβ only run tests in files that match the Emacs regular expression PATTERN. and yes you can pass this one multiple times, stack 'em up π-L DIR,--directory DIR,-f FUNCTION,--funcall FUNCTION,-l FILE,--load FILE,--eval EXPR,--execute EXPRβ these all get passed along when Emacs is invoked in batch mode to run the test suite. like, for example, most invocations will pass-L .so the current project gets pulled into theload-path. you can pass these multiple times too. for the full rundown on each one, go seeemacs(1)π«Ά-c PATTERN,--no-color PATTERNβ turns off Buttercup's coloured output. no rainbow, no sparkle, just plain text π--traceback STYLEβ when it prints backtraces for errors that pop up during tests, this picks the STYLE. the available styles are:"full"β shows the full function call for each stack frame, all on a single line"crop"β truncates each stack frame to 80 characters, and this one is the default"pretty"β uses Emacs' pretty-printing facilities to print each stack frame, and it also annotates each frame with alambdaorMto tell you whether it's a normal function call or a macro/special form. so fancy, so extra, obsessed π₯
heads up bestie: "crop" is the default, so if you don't say anything you're getting 80-character frames whether you asked or not π
that's the whole page, no cap. this was BUTTERCUP(1) from the General Commands Manual β and that's the sign-off, mwah πβ¨
π bye bestie, go write some tests π
π¦ where this page comes from
- debian bookworm: elpa-buttercup 1.26-4 Β· GPL-3.0-or-later
- debian trixie: elpa-buttercup 1.37-1 Β· GPL-3.0-or-later
- ubuntu jammy: elpa-buttercup 1.24-1 Β· GPL-3.0-or-later
- ubuntu noble: elpa-buttercup 1.31-1 Β· GPL-3.0-or-later
- ubuntu questing: elpa-buttercup 1.37-1
- ubuntu resolute: elpa-buttercup 1.38-1 Β· GPL-3.0-or-later
- ubuntu stonking: elpa-buttercup 1.40-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms