From ed8353064120e8941c617884c361c2cf1898e674 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sat, 27 Aug 2022 10:30:47 +0200 Subject: update ert-helper to load all tests files --- test/ert-helper.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/ert-helper.el') diff --git a/test/ert-helper.el b/test/ert-helper.el index f65649f..140425b 100644 --- a/test/ert-helper.el +++ b/test/ert-helper.el @@ -13,3 +13,11 @@ (load-file "lisp/mastodon-search.el") (load-file "lisp/mastodon-tl.el") (load-file "lisp/mastodon-toot.el") + +;; load tests in bulk to avoid using deprecated `cask exec' +(let ((tests (cl-remove-if-not (lambda (x) + (string-suffix-p "-tests.el" x)) + (directory-files "test/." t directory-files-no-dot-files-regexp)))) + (mapc #'load-file tests)) + + -- cgit v1.2.3