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 10:30:47 +0200 |
commit | 1a66ec50e5a85910a55a83a827998d66bc3a96eb (patch) | |
tree | bda7e761daca5f49d9653a827f10c97490b29c57 | |
parent | 103b2d5d9bbc969bb2eb48f3238ef764858248b8 (diff) |
update ert-helper to load all tests files
-rw-r--r-- | .woodpecker.yml | 2 | ||||
-rw-r--r-- | test/ert-helper.el | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml index 26dc9d7..53952ec 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,5 +3,5 @@ pipeline: image: silex/emacs:cask commands: - cask install - - cask emacs -batch -l test/ert-helper.el -l test/*-tests.el -f ert-run-tests-batch-and-exit + - cask emacs -batch -l test/ert-helper.el -f ert-run-tests-batch-and-exit 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)) + + |