[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup f1f403b 308/340: Remove buttercup-reporter-batch
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup f1f403b 308/340: Remove buttercup-reporter-batch-color |
Date: |
Thu, 16 Dec 2021 14:59:56 -0500 (EST) |
branch: elpa/buttercup
commit f1f403b7b20c46a935e6c9053c252ab7822b4b34
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Remove buttercup-reporter-batch-color
buttercup-reporter-batch-color has been completely merged into
buttercup-reporter-batch.
---
buttercup.el | 17 +----------------
tests/test-buttercup.el | 34 +++++++++++++++++-----------------
2 files changed, 18 insertions(+), 33 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index 2be2324..69b46be 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -1586,9 +1586,7 @@ Calls either `buttercup-reporter-batch' or
EVENT and ARG are described in `buttercup-reporter'."
(if noninteractive
- (if buttercup-color
- (buttercup-reporter-batch-color event arg)
- (buttercup-reporter-batch event arg))
+ (buttercup-reporter-batch event arg)
(buttercup-reporter-interactive event arg)))
(defvar buttercup-reporter-batch--start-time nil
@@ -1736,19 +1734,6 @@ Colorize parts of the output if COLOR is non-nil."
"Ran %d%s specs, %s, in %s.\n"
(- defined pending) out-of failed-str duration)))
-(defun buttercup-reporter-batch-color (event arg)
- "A reporter that handles batch sessions.
-
-Compared to `buttercup-reporter-batch', this reporter uses
-colors.
-
-EVENT and ARG are described in `buttercup-reporter'."
- (pcase event
- (_
- ;; Fall through to buttercup-reporter-batch implementation.
- (buttercup-reporter-batch event arg)))
- )
-
(defun buttercup--print (fmt &rest args)
"Format a string and send it to terminal without alteration.
diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index 9f7b9fe..d044d3a 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -1115,7 +1115,7 @@ text properties using `ansi-color-apply'."
(it "should color-print the number of specs with the default color"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'buttercup-started (list
parent-suite)))
+ (buttercup-reporter-batch 'buttercup-started (list parent-suite)))
(expect (buttercup-output) :to-equal-including-properties "Running 1
specs.\n\n"))
(it "should print the number of skipped specs"
@@ -1127,7 +1127,7 @@ text properties using `ansi-color-apply'."
(it "should color-print the number of skipped specs with the default
color"
(with-local-buttercup :color t
(buttercup-suite-add-child child-suite skipped)
- (buttercup-reporter-batch-color 'buttercup-started (list
parent-suite)))
+ (buttercup-reporter-batch 'buttercup-started (list parent-suite)))
(expect (buttercup-output) :to-equal-including-properties "Running 1
out of 2 specs.\n\n")))
(describe "on the suite-started event"
@@ -1138,7 +1138,7 @@ text properties using `ansi-color-apply'."
(it "should color-print an indented suite description with the default
color"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'suite-started child-suite))
+ (buttercup-reporter-batch 'suite-started child-suite))
(expect (buttercup-output) :to-equal-including-properties "
child-suite\n")))
(describe "on the spec-started event"
@@ -1149,7 +1149,7 @@ text properties using `ansi-color-apply'."
(it "should color-print an indented spec description with the default
color"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'spec-started spec))
+ (buttercup-reporter-batch 'spec-started spec))
(expect (buttercup-output) :to-equal-including-properties " spec")))
(describe "on the spec-done event"
@@ -1169,8 +1169,8 @@ text properties using `ansi-color-apply'."
(it "should color-print the description in green and no status tag"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'spec-started spec)
- (buttercup-reporter-batch-color 'spec-done spec))
+ (buttercup-reporter-batch 'spec-started spec)
+ (buttercup-reporter-batch 'spec-done spec))
(expect (buttercup-output) :to-equal-including-properties
(ansi-color-apply
(format "\e[32m spec\e[0m (%s)\n"
@@ -1188,8 +1188,8 @@ text properties using `ansi-color-apply'."
(it "should color-print multiline specs cleanly"
(setf (buttercup-spec-description spec) "one\ntwo\vthree")
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'spec-started spec)
- (buttercup-reporter-batch-color 'spec-done spec))
+ (buttercup-reporter-batch 'spec-started spec)
+ (buttercup-reporter-batch 'spec-done spec))
(expect (buttercup-output) :to-equal-including-properties
(ansi-color-apply
(format "\e[32m one\ntwo\n three\e[0m (%s)\n"
@@ -1211,8 +1211,8 @@ text properties using `ansi-color-apply'."
(it "should color-print the description in red and say FAILED"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'spec-started spec)
- (buttercup-reporter-batch-color 'spec-done spec))
+ (buttercup-reporter-batch 'spec-started spec)
+ (buttercup-reporter-batch 'spec-done spec))
(expect (buttercup-output) :to-equal-including-properties
(ansi-color-apply
(format "\e[31m spec FAILED\e[0m (%s)\n"
@@ -1235,8 +1235,8 @@ text properties using `ansi-color-apply'."
(it "should color-print the description and failure-description in
yellow"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'spec-started spec)
- (buttercup-reporter-batch-color 'spec-done spec))
+ (buttercup-reporter-batch 'spec-started spec)
+ (buttercup-reporter-batch 'spec-done spec))
(expect (buttercup-output) :to-equal-including-properties
(ansi-color-apply
(format "\e[33m spec DESCRIPTION\e[0m (%s)\n"
@@ -1261,7 +1261,7 @@ text properties using `ansi-color-apply'."
(it "should color-print a newline at the end of a top-level suite"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'suite-done parent-suite))
+ (buttercup-reporter-batch 'suite-done parent-suite))
(expect (buttercup-output) :to-equal-including-properties "\n"))
(it "should not emit anything at the end of other suites"
@@ -1271,7 +1271,7 @@ text properties using `ansi-color-apply'."
(it "should not color-print anything at the end of other suites"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'suite-done child-suite))
+ (buttercup-reporter-batch 'suite-done child-suite))
(expect (buttercup-output) :to-equal-including-properties "")))
(describe "on the buttercup-done event"
@@ -1293,7 +1293,7 @@ text properties using `ansi-color-apply'."
(it "should color-print `0 failed' specs in green"
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'buttercup-done nil))
+ (buttercup-reporter-batch 'buttercup-done nil))
(expect (buttercup-output) :to-match
"Ran 10 specs, 0 failed, in [0-9]+.[0-9]+[mu]?s.\n")
(expect (substring (buttercup-output) 0 (length "Ran 10 specs, 0
failed, in"))
@@ -1303,7 +1303,7 @@ text properties using `ansi-color-apply'."
(it "should color-print `X failed' specs in red"
(setq failed-specs 6)
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'buttercup-done nil))
+ (buttercup-reporter-batch 'buttercup-done nil))
(expect (buttercup-output) :to-match
"Ran 10 specs, 6 failed, in [0-9]+.[0-9]+[mu]?s.\n")
(expect (substring (buttercup-output) 0 (length "Ran 10 specs, 6
failed, in"))
@@ -1320,7 +1320,7 @@ text properties using `ansi-color-apply'."
(it "should color-print pending spec count in default color"
(setq pending-specs 3)
(with-local-buttercup :color t
- (buttercup-reporter-batch-color 'buttercup-done nil))
+ (buttercup-reporter-batch 'buttercup-done nil))
(expect (buttercup-output) :to-match
"Ran 7 out of 10 specs, 0 failed, in [0-9]+.[0-9]+[mu]?s.\n")
(expect (substring (buttercup-output)
- [nongnu] elpa/buttercup d8b596c 240/340: Merge branch 'doc-improve', (continued)
- [nongnu] elpa/buttercup d8b596c 240/340: Merge branch 'doc-improve', ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 243b71f 245/340: Merge branch 'spy-scope-error', ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f3c2b00 261/340: test: Move with-local-buttercup to top of file, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 0dbd474 263/340: Bump version: 1.20 → 1.21, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1c9c82f 265/340: Fixed misspelling in the documentation, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 360953b 266/340: test: Only run tests found in the tests/ directory, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 25bc00d 273/340: test: Set up suite "The batch reporter" to use fake terminal, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 5c9f80d 279/340: test: Add color tests for buttercup-suite-started and -done, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 2be9ad3 280/340: test: Add color tests for spec-done, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 0e94f6e 303/340: Lift buttercup-done handling into buttercup-reporter-batch, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f1f403b 308/340: Remove buttercup-reporter-batch-color,
ELPA Syncer <=
- [nongnu] elpa/buttercup fce5fa5 313/340: Optionally fail when loading old elc files, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6c3bb75 318/340: Accept a list of regexes in buttercup-mark-skipped, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9dda405 320/340: Document use with Eldev, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 06201f2 335/340: Print :to-have-been-called-with args as sexp for consistency, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 459bffb 282/340: test: Add color tests for buttercup-done, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a1c7bff 101/340: Do not ignore errors when after-each succeeds, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b120003 108/340: Merge pull request #60 from howdoicomputer/feature/windows-bin-support, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 06c9699 104/340: Merge pull request #58 from Fuco1/to-equal-as-set, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a6d9bde 105/340: Support more emacs parameters useful for pre-test initialization, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup abf2abe 109/340: Exclude hidden files and dirs in test root, ELPA Syncer, 2021/12/16