emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup 389dc43 139/340: Fix a problem with reporter tes


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 389dc43 139/340: Fix a problem with reporter tests suppressing failure messages
Date: Thu, 16 Dec 2021 14:59:20 -0500 (EST)

branch: elpa/buttercup
commit 389dc438a00353d2eaa86550a995ecdb7fce25b0
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>

    Fix a problem with reporter tests suppressing failure messages
    
    The test for the batch reporter was inappropriately clearing the list
    of test failures, so that any failures that occurred before that test
    would not have their errors shown.
    
    Fixes #108.
---
 tests/test-buttercup.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index c120574..4455572 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -768,7 +768,8 @@
 
     (describe "on the buttercup-started event"
       (it "should emit the number of specs"
-        (let ((buttercup-reporter-batch--start-time nil))
+        (let ((buttercup-reporter-batch--start-time nil)
+              (buttercup-reporter-batch--failures nil))
           (buttercup-reporter-batch 'buttercup-started (list parent-suite)))
 
         (expect 'buttercup--print



reply via email to

[Prev in Thread] Current Thread [Next in Thread]