#!/usr/bin/env emacs --script (let ((current-directory (file-name-directory load-file-name))) (setq cider-test-path (expand-file-name "." current-directory)) (setq cider-root-path (expand-file-name ".." current-directory))) (add-to-list 'load-path cider-root-path) (add-to-list 'load-path cider-test-path) (require 'cider) (require 'cl) (dolist (test-file (or argv (directory-files cider-test-path t "-tests.el$"))) (load test-file nil t)) ;; run tests (ert-run-tests-batch-and-exit t)