Add test setup

This commit is contained in:
James Nguyen 2017-11-20 23:18:01 -08:00
parent 58b9367f29
commit 31ff644099
5 changed files with 26 additions and 0 deletions

View File

@ -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.

3
Cask
View File

@ -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"))

View File

@ -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

View File

@ -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

9
test/test-helper.el Normal file
View File

@ -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