Skip to content

Commit

Permalink
Redo unit-test initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Jun 8, 2017
1 parent 73fb6b0 commit 4be5ff1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions test/init.test.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

(require 'core (concat user-emacs-directory "core/core"))

(setq-default debug-on-error nil)

(doom! :feature evil
:private hlissner)
6 changes: 6 additions & 0 deletions test/run.el
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4be5ff1

Please sign in to comment.