aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-27 10:30:47 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-27 11:04:19 +0200
commit0415a6cd1bd19be021c619e52d7b7fd675927cfc (patch)
tree31b902ce61c29c298c65128466c56dcfc86bad99 /test
parentfd5424da7ee54e90eff4cbdbe1528137fb38cbef (diff)
update ert-helper to load all tests files
Diffstat (limited to 'test')
-rw-r--r--test/ert-helper.el8
1 files changed, 8 insertions, 0 deletions
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))
+
+