Redo unit-test initialization

This commit is contained in:
Henrik Lissner 2017-06-09 00:34:02 +02:00
parent 73fb6b0800
commit 4be5ff1092
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 8 additions and 4 deletions

View file

@ -43,10 +43,10 @@ clean-pcache:
@$(EMACS) -l persistent-soft --eval '(delete-directory pcache-directory t)'
test: init.el .local/autoloads.el
@$(TEST_EMACS) $(patsubst %,-l %, $(TESTS)) -f ert-run-tests-batch-and-exit
@$(TEST_EMACS) $(patsubst %,-l %, $(TESTS)) -l test/run.el
$(TESTS): init.el .local/autoloads.el
@$(TEST_EMACS) $(patsubst %,-l %, $@) -f ert-run-tests-batch-and-exit
@$(TEST_EMACS) $(patsubst %,-l %, $@) -l test/run.el
doctor:
@./bin/doctor

View file

@ -2,7 +2,5 @@
(require 'core (concat user-emacs-directory "core/core"))
(setq-default debug-on-error nil)
(doom! :feature evil
:private hlissner)

6
test/run.el Normal file
View file

@ -0,0 +1,6 @@
;;; ../test/setup.el
(setq-default debug-on-error nil)
(run-hooks 'after-init-hook 'emacs-startup-hook 'window-setup-hook)
(ert-run-tests-batch-and-exit)