Last active
January 7, 2019 00:43
-
-
Save podhmo/2435226d4e1e504ec5c6d8908c94aa0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my:add (x y) (+ x y)) | |
(require 'ert) | |
(ert-deftest add20 () | |
(should (= 20 (my:add 10 10))) | |
) | |
(ert-deftest add21 () | |
(should (= 21 (my:add 10 10))) | |
) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EMACS ?= emacs | |
SELECTOR ?= t | |
TESTS ?= $(wildcard *test.el) | |
test: | |
$(EMACS) -Q --batch -L . \ | |
-l subr \ | |
$(addprefix -l ,$(TESTS)) \ | |
--eval '(setq ert-batch-backtrace-right-margin 100)' \ | |
--eval '(ert-run-tests-batch-and-exit (quote $(SELECTOR)))' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment