Skip to content

Commit

Permalink
Add test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jojojames committed Nov 21, 2017
1 parent 58b9367 commit 31ff644
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions Cask
Original file line number Diff line number Diff line change
@@ -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"))
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions test/evil-collection-test.el
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions test/test-helper.el
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 31ff644

Please sign in to comment.