diff --git a/.travis.yml b/.travis.yml index 3a127eb..f98c391 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ install: script: - make compile - make lint + - make test notifications: email: # Default is change, but that includes a new branch's 1st success. diff --git a/Cask b/Cask index 0b516f5..33d1486 100644 --- a/Cask +++ b/Cask @@ -1,6 +1,9 @@ +(source gnu) (source melpa) (package-file "evil-collection.el") (development + (depends-on "f") + (depends-on "ert-runner") (depends-on "package-lint")) diff --git a/Makefile b/Makefile index f1a3be8..2d03c53 100755 --- a/Makefile +++ b/Makefile @@ -14,3 +14,8 @@ lint: --eval "(package-refresh-contents)" \ -l package-lint.el \ -f package-lint-batch-and-exit *.el + +test: + cask exec ert-runner + +.PHONY: test diff --git a/test/evil-collection-test.el b/test/evil-collection-test.el new file mode 100644 index 0000000..3c17b8a --- /dev/null +++ b/test/evil-collection-test.el @@ -0,0 +1,8 @@ +;;; evil-collection-test.el --- Tests for evil-collection -*- lexical-binding: t -*- +(require 'evil-collection) + +(ert-deftest evil-collection-zero-test () + "Zero check blank test." + (should (equal 0 0))) + +;;; evil-collection-test.el ends here diff --git a/test/test-helper.el b/test/test-helper.el new file mode 100644 index 0000000..b5d9e63 --- /dev/null +++ b/test/test-helper.el @@ -0,0 +1,9 @@ +;;; test-helper.el --- Helpers for evil-collection-test.el -*- lexical-binding: t -*- +(require 'ert) + +;; FIXME: Adding `f' as a dependency just for this line. +(require 'f) +(let ((evil-collection-dir (f-parent (f-dirname (f-this-file))))) + (add-to-list 'load-path evil-collection-dir)) +(require 'evil-collection) +;;; test-helper.el ends here