[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup b3acf50 304/340: Lift spec-started handling into
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup b3acf50 304/340: Lift spec-started handling into buttercup-reporter-batch |
Date: |
Thu, 16 Dec 2021 14:59:55 -0500 (EST) |
branch: elpa/buttercup
commit b3acf50988b0ca338da280390d4624226a93b74b
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Lift spec-started handling into buttercup-reporter-batch
... from buttercup-reporter-batch-color. Use the buttercup-color
variable to differentiate the two cases.
---
buttercup.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index bf1ec9f..20d75f3 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -1618,7 +1618,9 @@ EVENT and ARG are described in `buttercup-reporter'."
(`suite-started
(buttercup--print "%s\n" (buttercup--indented-description arg)))
(`spec-started
- (buttercup--print "%s" (buttercup--indented-description arg)))
+ (unless (and buttercup-color
+ (string-match-p "[\n\v\f]" (buttercup-spec-description
arg)))
+ (buttercup--print "%s" (buttercup--indented-description arg))))
(`spec-done
(pcase (buttercup-spec-status arg)
(`passed) ; do nothing
@@ -1703,9 +1705,6 @@ colors.
EVENT and ARG are described in `buttercup-reporter'."
(pcase event
- (`spec-started
- (unless (string-match-p "[\n\v\f]" (buttercup-spec-description arg))
- (buttercup-reporter-batch event arg)))
(`spec-done
;; Carriage returns (\r) should not be colorized. It would mess
;; up color handling in Emacs compilation buffers using
- [nongnu] elpa/buttercup e71a40f 287/340: Make sure carriage movement characters are not colorized, (continued)
- [nongnu] elpa/buttercup e71a40f 287/340: Make sure carriage movement characters are not colorized, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a22fc29 288/340: Bump version: 1.21 → 1.22, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dde8651 290/340: Add new function buttercup--spec-mark-pending and use it, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c59110b 291/340: test: Extend with-local-buttercup with some key arguments, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d443ecb 293/340: Clarify patterns in bin/buttercup, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4d1acb8 294/340: test: Rewrite buttercup-run tests using spies, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 37223e4 296/340: actions: Run actions on push for all branches, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 50c7fc2 297/340: Switch to pcase in spec-done case of buttercup-reporter-batch, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dd32cc7 298/340: test: Fix "should color-print pending spec count in default color", ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 0debeec 299/340: test: Use with-local-buttercup in more tests, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b3acf50 304/340: Lift spec-started handling into buttercup-reporter-batch,
ELPA Syncer <=
- [nongnu] elpa/buttercup 24a7bb9 306/340: Extract buttercup-reporter-batch--print-spec-done-line, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c9addd5 307/340: Lift spec-done handling into buttercup-reporter-batch, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d6de872 309/340: Improve buttercup-reporter-batch--print-failed-spec-report, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 392b99c 310/340: Extend batch reporters to optionally print sparse reports, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f6ab784 315/340: test: Test on GNU Emacs 27.1, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4d974d2 319/340: Use correct function for --stale-file-error, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a37d1a0 325/340: Fix compilation warning about undefined variable., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b4e0986 333/340: Merge pull request #194 from doublep/eldev-doc, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 108d229 340/340: Fix property comparisons in unit tests., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dacfacc 332/340: Recognize buttercup--mark-stackframe in buttercup--enclosed-expr, ELPA Syncer, 2021/12/16