diff --git a/core/autoload/test.el b/core/autoload/test.el index 21a71279a..7ce57e11f 100644 --- a/core/autoload/test.el +++ b/core/autoload/test.el @@ -1,5 +1,14 @@ ;;; core/autoload/test.el -*- lexical-binding: t; no-byte-compile: t; -*- +(defvar doom-test-modules + '(:feature evil workspaces + :completion company + :ui doom-dashboard + :tools password-store + :lang org web + :private hlissner) + "The `doom!' specs for the Doom unit test session.") + ;;;###autoload (defun doom//run-tests (&optional modules) "Run all loaded tests, specified by MODULES (a list of module cons cells) or @@ -38,7 +47,7 @@ If neither is available, run all tests in all enabled modules." (t (let (noninteractive) (clrhash doom-modules) - (load (expand-file-name "init.test.el" user-emacs-directory) nil t) + (eval `(doom! ,@doom-test-modules)) (setq modules (doom-module-pairs) targets (list (expand-file-name "test/" doom-core-dir)))))) ;; resolve targets to a list of test files and load them diff --git a/init.test.el b/init.test.el deleted file mode 100644 index 8d529cd2f..000000000 --- a/init.test.el +++ /dev/null @@ -1,23 +0,0 @@ -;;; init.test.el -- for automated unit tests -*- lexical-binding: t; -*- - -(require 'core (concat user-emacs-directory "core/core")) - -(doom! :feature - evil - workspaces - - :completion - company - - :ui - doom-dashboard - - :tools - password-store - - :lang - org - web - - :private - hlissner)