Redo unit-test initialization
This commit is contained in:
parent
73fb6b0800
commit
4be5ff1092
3 changed files with 8 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -43,10 +43,10 @@ clean-pcache:
|
||||||
@$(EMACS) -l persistent-soft --eval '(delete-directory pcache-directory t)'
|
@$(EMACS) -l persistent-soft --eval '(delete-directory pcache-directory t)'
|
||||||
|
|
||||||
test: init.el .local/autoloads.el
|
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
|
$(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:
|
doctor:
|
||||||
@./bin/doctor
|
@./bin/doctor
|
||||||
|
|
|
@ -2,7 +2,5 @@
|
||||||
|
|
||||||
(require 'core (concat user-emacs-directory "core/core"))
|
(require 'core (concat user-emacs-directory "core/core"))
|
||||||
|
|
||||||
(setq-default debug-on-error nil)
|
|
||||||
|
|
||||||
(doom! :feature evil
|
(doom! :feature evil
|
||||||
:private hlissner)
|
:private hlissner)
|
||||||
|
|
6
test/run.el
Normal file
6
test/run.el
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue