[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 11d7fdc 148/340: Add "--help" option to buttercu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 11d7fdc 148/340: Add "--help" option to buttercup command-line script |
Date: |
Thu, 16 Dec 2021 14:59:22 -0500 (EST) |
branch: elpa/buttercup
commit 11d7fdce9f46eec62ed86f4f9617e04d2c204b3a
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Add "--help" option to buttercup command-line script
---
bin/buttercup | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/bin/buttercup b/bin/buttercup
index 9f63e69..ede0c51 100755
--- a/bin/buttercup
+++ b/bin/buttercup
@@ -7,12 +7,57 @@ else
EMACS_BIN="${EMACS:-emacs}"
fi
+usage () {
+ cat <<EOF
+$0 [OPTIONS] [DIRS]
+
+Buttercup will search recursively in each of DIRS for test files (any
+elisp file starting with "test-" or ending with "-test.el" or
+"-tests.el"). It will load all of those files and then run the tests
+defined in those files. If no directories are specified, buttercup
+will search in the current directory.
+
+Options can include the options described below, as well as the
+standard Emacs options "--directory", "--funcall", "--load", "--eval",
+and "--execute". These Emacs options should be used to ensure that any
+Elisp files required for the tests can be found in Emacs' load path.
+For package testing, "-L ." is commonly used. See "emacs --help" for
+more information on Emacs options.
+
+Buttercup options:
+
+--pattern, -p PATTERN Only run tests with names matching PATTERN.
+ This option can be used multiple times, in
+ which case tests will be run if they match
+ any of the given patterns.
+
+--no-color, -c Do not colorize test output.
+
+--traceback STYLE 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.
+EOF
+}
+
EMACS_ARGS=()
BUTTERCUP_ARGS=()
while [[ "$#" -gt 0 ]]
do
case "$1" in
+ "-h"|"--help")
+ usage
+ exit
+ ;;
"-L"|"--directory"|"-f"|"--funcall"|"-l"|"--load"|"--eval"|"--execute")
EMACS_ARGS+=("$1")
EMACS_ARGS+=("$2")
@@ -29,6 +74,12 @@ do
BUTTERCUP_ARGS+=("$1")
shift
;;
+ "--traceback")
+ BUTTERCUP_ARGS+=("$1")
+ BUTTERCUP_ARGS+=("$2")
+ shift
+ shift
+ ;;
*)
BUTTERCUP_ARGS+=("$1")
shift
- [nongnu] elpa/buttercup 2f24a44 338/340: Make formatting of backtrace frames closer to that standard for Emacs, (continued)
- [nongnu] elpa/buttercup 2f24a44 338/340: Make formatting of backtrace frames closer to that standard for Emacs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f6f9335 337/340: test: Add tests for buttercup-run-discovery, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 553ff83 103/340: Add :to-have-same-items-as to compare lists as sets., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 657acef 102/340: Bump version: 1.4 → 1.5, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 7e8898b 127/340: Implement :to-have-been-called-times matcher (close #90), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ca09040 130/340: Improve the Makefile, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a535e51 134/340: Fix a logic error in spy tests, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6ad9565 135/340: Fix several edge cases in "spy-on", ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 389dc43 139/340: Fix a problem with reporter tests suppressing failure messages, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 929a904 143/340: Implement closure-based expect macro, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 11d7fdc 148/340: Add "--help" option to buttercup command-line script,
ELPA Syncer <=
- [nongnu] elpa/buttercup 4106adc 170/340: Add release script, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9b6cc79 177/340: travis: Test on 26.1, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 0d742b0 187/340: Set failure-description for pending specs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1c50a80 196/340: Fix the buttercup-run tests, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 810fa6f 197/340: Bump version: 1.15 → 1.16, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4459f37 199/340: Add test for :var* argument, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ff16814 216/340: travis: Always test on xenial, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bd851d4 217/340: Merge pull request #155 from snogge/travis-xenial, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 246ddd7 218/340: Merge pull request #152 from DarwinAwardWinner/suppress-warning-redirect, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9408a72 220/340: Merge pull request #154 from DarwinAwardWinner/test-emacs-26.3, ELPA Syncer, 2021/12/16