Update & fix unit tests

This commit is contained in:
Henrik Lissner 2018-03-02 20:46:45 -05:00
parent d5c799a536
commit 57efa1b864
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 5 additions and 7 deletions

View file

@ -10,7 +10,10 @@ If neither is available, run all tests in all enabled modules."
(interactive) (interactive)
(let ((doom-modules (make-hash-table :test #'equal))) (let ((doom-modules (make-hash-table :test #'equal)))
;; ensure DOOM is initialized ;; ensure DOOM is initialized
(doom-initialize-packages t) (let (noninteractive)
;; Core libraries aren't fully loaded in a noninteractive session, so
;; we reload it with `noninteractive' set to nil to force them to.
(load (expand-file-name "core.el" doom-core-dir) nil t t))
(condition-case-unless-debug ex (condition-case-unless-debug ex
(let ((target-paths (let ((target-paths
;; Convert targets (either from MODULES or `argv') into a list of ;; Convert targets (either from MODULES or `argv') into a list of
@ -18,7 +21,7 @@ If neither is available, run all tests in all enabled modules."
(cond ((string= (car argv) "--") ; command line (cond ((string= (car argv) "--") ; command line
(save-match-data (save-match-data
(cl-loop for arg in (cdr argv) (cl-loop for arg in (cdr argv)
if (equal arg "core") collect doom-core-dir if (string= arg "core") collect doom-core-dir
else if (string-match-p "/" arg) else if (string-match-p "/" arg)
nconc (cl-loop for dir in doom-modules-dirs nconc (cl-loop for dir in doom-modules-dirs
collect (expand-file-name arg dir)) collect (expand-file-name arg dir))

View file

@ -1,9 +1,6 @@
;; -*- lexical-binding: t; no-byte-compile: t; -*- ;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; completion/company/test/company.el ;;; completion/company/test/company.el
(require! :completion company)
(require 'company)
;; ;;
(def-test! set-company-backend (def-test! set-company-backend
:minor-mode company-mode :minor-mode company-mode

View file

@ -1,8 +1,6 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; feature/evil/test/evil.el ;;; feature/evil/test/evil.el
(require! :feature evil)
;; ;;
;; `evil-ex-replace-special-filenames' ;; `evil-ex-replace-special-filenames'
(def-test! resolve-vim-path (def-test! resolve-vim-path