[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup ee000fabd1 04/16: tests: Cleanup and comments
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup ee000fabd1 04/16: tests: Cleanup and comments |
Date: |
Wed, 4 Sep 2024 18:59:24 -0400 (EDT) |
branch: elpa/buttercup
commit ee000fabd1cf1e9bca8a0a0026054e1d903b18a0
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
tests: Cleanup and comments
---
tests/test-buttercup.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index e2ab163725..42948a4a34 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -1947,7 +1947,7 @@ before it's processed by other functions."
(kill-buffer print-buffer)
(setq print-buffer nil))
;; define a buttercup-reporter-batch variant that only outputs on
- ;; buttercup-done
+ ;; buttercup-done, because that is where backtraces are printed
(before-each
(spy-on 'backtrace-reporter :and-call-fake
(lambda (event arg)
@@ -1960,11 +1960,12 @@ before it's processed by other functions."
(spy-on 'buttercup-reporter-batch--print-summary))
;; define a known backtrace with a typical error
(before-all
- (defun bc-bt-foo (a) (bc-bt-bar a))
- (defun bc-bt-bar (a) (bc-bt-baz a))
- (defun bc-bt-baz (a)
+ (defun bc-bt-baz (a)
(or (number-or-marker-p a)
- (signal 'wrong-type-argument `(number-or-marker-p ,a)))))
+ (signal 'wrong-type-argument `(number-or-marker-p ,a))))
+ (with-no-warnings
+ (defun bc-bt-bar (a) (bc-bt-baz a))
+ (defun bc-bt-foo (a) (bc-bt-bar a))))
(after-all
(fmakunbound 'bc-bt-foo)
(fmakunbound 'bc-bt-bar)
@@ -2007,6 +2008,8 @@ before it's processed by other functions."
(bc-bt-foo long-string)
:to-be-truthy)))
(setq test-suites buttercup-suites)))
+ (after-each
+ (setq test-suites nil))
(it "`crop' should print truncated lines"
(with-local-buttercup
:suites test-suites :reporter #'backtrace-reporter
- [nongnu] elpa/buttercup updated (dfbef21772 -> 8408579758), ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup 45d53515da 02/16: Stop adding frames to backtrace once a buttercup wrap func is found, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup 0444816a60 07/16: tests: Refactor test that no backtraces are collected for skipped specs, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup ee000fabd1 04/16: tests: Cleanup and comments,
ELPA Syncer <=
- [nongnu] elpa/buttercup 0552fe4d5b 12/16: Add :to-be-close-to docstring, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup c8f34ae3ed 05/16: Limit backtraces for spec exceptions outside expect, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup add32f8cbf 08/16: Collect stacktraces for errors in matchers, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup be72aa872c 06/16: tests: Verify that backtraces are not collected for passed specs, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup 8408579758 16/16: Rewrite buttercup-expect with pcase, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup 925af155be 15/16: tests: Add backtrace tests for function matchers, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup df7f98e110 03/16: Do not collect backtraces for failed specs, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup 4b1682ec98 01/16: Use the base argument of backtrace-frame, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup a1d0d73999 11/16: Improve docstring of buttercup-define-matcher, ELPA Syncer, 2024/09/04
- [nongnu] elpa/buttercup 789570cf7d 10/16: Merge pull request #249 from snogge/fix-247, ELPA Syncer, 2024/09/04