diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-27 10:30:47 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-27 11:02:20 +0200 |
commit | ed8353064120e8941c617884c361c2cf1898e674 (patch) | |
tree | 4f3f6ec6ed6781d93712cb1010daa73183ebfac3 /test/ert-helper.el | |
parent | 7fefb9d6c420e0498636b09465fbc1b811a33c12 (diff) |
update ert-helper to load all tests files
Diffstat (limited to 'test/ert-helper.el')
-rw-r--r-- | test/ert-helper.el | 8 |
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)) + + |