Move init.test.el into core/autoload/test.el

This commit is contained in:
Henrik Lissner 2018-02-03 01:32:04 -05:00
parent d714be0a16
commit 3bfb7fa17d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 10 additions and 24 deletions

View file

@ -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

View file

@ -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)