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

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

[nongnu] elpa/buttercup 31e765b 142/340: Do not suppress errors while lo


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 31e765b 142/340: Do not suppress errors while loading test files
Date: Thu, 16 Dec 2021 14:59:21 -0500 (EST)

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

    Do not suppress errors while loading test files
    
    This commit removes the "condition-case" that suppresses errors while
    loading test files. Suppressing these errors can cause buttercup to
    only run the tests that were defined before the error occurred. This
    can cause buttercup to report a successful outcome even though some
    tests were never run.
    
    Fixes #107.
---
 buttercup.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index 0e76e02..e6c21c3 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -772,10 +772,7 @@ current directory."
       (dolist (file (directory-files-recursively
                      dir "\\`test-.*\\.el\\'\\|-tests?\\.el\\'"))
         (when (not (string-match "\\(^\\|/\\)\\." (file-relative-name file)))
-          (condition-case err
-              (load file nil t)
-            (error
-             (message (format "Error while loading %s:\n%s" file 
(error-message-string err))))))))
+          (load file nil t))))
     (when patterns
       (let ((suites-or-specs buttercup-suites))
         (while suites-or-specs



reply via email to

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