Add unit test framework

This commit is contained in:
Henrik Lissner 2016-10-02 16:19:49 +02:00
parent 7836698262
commit ad12b9057b
4 changed files with 20 additions and 1 deletions

5
Cask
View file

@ -303,3 +303,8 @@
;; Debugging -- modules/custom-debug.el ;; Debugging -- modules/custom-debug.el
(depends-on "realgud") (depends-on "realgud")
;;;; DEV TOOLS ;;;;;;;;;;;;;;;;;
(development
(depends-on "ert-runner"))

View file

@ -32,6 +32,9 @@ clean-cache:
clean-lite: clean-lite:
@rm -f init.elc core/core.elc @rm -f init.elc core/core.elc
test:
@cask exec ert-runner -l core/core.el
######################################## ########################################
%.elc: %.el %.elc: %.el
@ -44,4 +47,4 @@ _install: clean-lite
@cask install 2>&1 @cask install 2>&1
@mkdir -p $(CACHE_DIR)/{undo,backup,workgroups} @mkdir -p $(CACHE_DIR)/{undo,backup,workgroups}
.PHONY: all .PHONY: all test

5
test/basic-test.el Normal file
View file

@ -0,0 +1,5 @@
;;; basic-test.el
(ert-deftest doom-basic-test ()
(should t))

6
test/test-helper.el Normal file
View file

@ -0,0 +1,6 @@
;;; test-helper.el
(require 'ert)
(provide 'test-helper)
;;; test-helper.el ends here