Move init.test.el into core/autoload/test.el
This commit is contained in:
parent
d714be0a16
commit
3bfb7fa17d
2 changed files with 10 additions and 24 deletions
|
@ -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
|
||||
|
|
23
init.test.el
23
init.test.el
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue