[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 4063f55 162/340: Add function buttercup--specs
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 4063f55 162/340: Add function buttercup--specs |
Date: |
Thu, 16 Dec 2021 14:59:26 -0500 (EST) |
branch: elpa/buttercup
commit 4063f5592728ce77a29c10ad730f2fd2833acaff
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Add function buttercup--specs
---
buttercup.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/buttercup.el b/buttercup.el
index 87b2e5f..54d54ba 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -727,6 +727,15 @@ See also `buttercup-define-matcher'."
"Return the number of failed specs in all suites in SUITE-LIST."
(buttercup-suites-total-specs-status suite-list 'failed))
+(defun buttercup--specs (spec-or-suite-list)
+ "Return a flat list of all specs in SPEC-OR-SUITE-LIST."
+ (let (specs)
+ (dolist (spec-or-suite spec-or-suite-list specs)
+ (if (buttercup-spec-p spec-or-suite)
+ (setq specs (append specs (list spec-or-suite)))
+ (setq specs (append specs (buttercup--specs
+ (buttercup-suite-children
spec-or-suite))))))))
+
(defun buttercup--specs-and-suites (spec-or-suite-list)
"Return a flat list of all specs and suites in SPEC-OR-SUITE-LIST."
(let ((specs-and-suites nil))
- [nongnu] elpa/buttercup 18a8879 151/340: Bump version: 1.8 → 1.9, (continued)
- [nongnu] elpa/buttercup 18a8879 151/340: Bump version: 1.8 → 1.9, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 62c416a 164/340: Rewrite the pattern loop of buttercup-run-discover, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 636db47 172/340: Typo fixes (#126), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 8034597 175/340: Replace remaining calls to obsolete buttercup-*-parents, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f57036f 180/340: Update the disabled/pending sections of writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 406c41d 190/340: Print elapsed time for each spec, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 19f256e 094/340: Update copyright / license information for some details, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 46882f8 131/340: Show a message about duplicate spec names, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 07cf64b 140/340: Run test-buttercup.el before tests in writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 2edeae5 159/340: Rewrite buttercup-suite-full-name with a single loop, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4063f55 162/340: Add function buttercup--specs,
ELPA Syncer <=
- [nongnu] elpa/buttercup bf0e1da 049/340: Rename tar target to release and add compile and clean targets., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 17f3cf5 062/340: Remove error in favor of failed., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f3d6709 074/340: Use relative path when testing for dotfiles in current project, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup acccc0f 179/340: Modify xdescribe to keep all contained specs as pending, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d07dbf3 182/340: Merge pull request #129 from snogge/fix-obsolete-aliases, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 079ef3e 186/340: Bump version: 1.12 → 1.13, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1998ae3 188/340: Drop unused variable in buttercup--disable-specs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup edcffde 189/340: Add start and end times to each suite or spec, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 075b318 198/340: Add support for :var*, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1c762a5 200/340: Add documentation for :var and :var*, ELPA Syncer, 2021/12/16