Scroll to navigation

BUTTERCUP(1) General Commands Manual BUTTERCUP(1)

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 invokes the Buttercup testing framework for Emacs Lisp addons for tests found in the directories passed on the command line.

OPTIONS

Display usage information.
Only run tests in files matching the Emacs regular expression PATTERN. May be passed multiple times.
Passed on when invoking Emacs in batch mode to run the test suite. For example, most invocations will pass -L . to include the current project in the load-path. May be passed multiple times. See emacs(1) for full descriptions of each option.
Disable Buttercup's coloured output.
When printing backtraces for errors that occur during tests, print them in the chosen STYLE. Available styles are "full", which shows the full function call for each stack frame on a single line, "crop", which truncates each stack frame to 80 characters (the default), and "pretty", which uses Emacs' pretty-printing facilities to print each stack frame, and also annotates each frame with a lambda or M to indicate whether it is a normal function call or a macro/special form.