Added Cask and ert-runner infrastructure

This commit is contained in:
Carlo Sciolla 2016-11-11 11:51:49 +01:00
parent 5cb8d2336a
commit 37dfe8c9fd
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
3 changed files with 46 additions and 0 deletions

10
Cask Normal file
View File

@ -0,0 +1,10 @@
(source gnu)
(source melpa)
(package-file "plantuml-mode.el")
(development
(depends-on "f")
(depends-on "ecukes")
(depends-on "ert-runner")
(depends-on "el-mock"))

View File

@ -0,0 +1,15 @@
;;; plantuml-mode-test.el --- PlantUML Mode tests -*- lexical-binding: t; -*-
;; Author: Carlo Sciolla (skuro)
;; Maintainer: Carlo Sciolla (skuro)
;; URL: https://github.com/skuro/plantuml-mode
;;; Commentary:
;;; Code:
(ert-deftest initial-jar-location ()
(should (equal (expand-file-name "~/plantuml.jar")
plantuml-jar-path)))
;;; plantuml-mode-test.el ends here

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

@ -0,0 +1,21 @@
;;; test-helper.el --- PlantUML Mode test initialization -*- lexical-binding: t; -*-
;; Author: Carlo Sciolla (skuro)
;; Maintainer: Carlo Sciolla (skuro)
;; URL: https://github.com/skuro/plantuml-mode
;;; Commentary:
;;; Code:
(require 'f)
(defvar package-test-path
(f-dirname (f-this-file)))
(defvar package-code-path
(f-parent package-test-path))
(require 'plantuml-mode (f-expand "plantuml-mode.el" package-code-path))
;;; test-helper.el ends here