Skip to content

Commit a23bec1

Browse files
committed
Merge pull request #113 from sviridov/cask-and-ert-runner-take-two
Cask and ert-runner support
2 parents 2955076 + a3421ff commit a23bec1

12 files changed

+61
-97
lines changed

.ert-runner

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-L .
2+
--quiet

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*\~
22
._*
3+
/.cask/
4+
/dist/

Cask

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(source gnu)
2+
(source melpa)
3+
4+
(package-file "elixir-mode.el")
5+
6+
(files "*.el")
7+
8+
(development
9+
(depends-on "ert-runner"))

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ add the following in your .emacs file:
101101
<td><code>elixir-mode-open-docs-stable</code></td>
102102
<td>Open the Elixir documentation for the latest stable release.</td>
103103
</tr>
104-
<tr>
105-
<td><code>elixir-mode-run-tests</code></td>
106-
<td>Run ERT tests for `elixir-mode`.</td>
107-
</tr>
108104
<tr>
109105
<td><code>elixir-mode-show-version</code></td>
110106
<td>Print version info for elixir-mode.</td>

elixir-mode-tests.el

Lines changed: 0 additions & 28 deletions
This file was deleted.

elixir-mode.el

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@
115115
;;
116116
;; Open the Elixir documentation for the latest stable release.
117117
;;
118-
;; M-x elixir-mode-run-tests
119-
;;
120-
;; Run ERT tests for `elixir-mode`.
121-
;;
122118
;; M-x elixir-mode-show-version
123119
;;
124120
;; Print `elixir-mode` version.
@@ -667,13 +663,6 @@ Argument END End of the region."
667663
:keymap '(("q" . quit-window))
668664
(setq buffer-read-only t))
669665

670-
;;;###autoload
671-
(defun elixir-mode-run-tests ()
672-
"Run ERT test for `elixir-mode'."
673-
(interactive)
674-
(load "elixir-mode-tests")
675-
(ert-run-tests-interactively "^elixir-ert-.*$"))
676-
677666
;; Invoke elixir-mode when appropriate
678667

679668
;;;###autoload

ert-bootstrap.el

Lines changed: 0 additions & 8 deletions
This file was deleted.

run_tests

Lines changed: 0 additions & 36 deletions
This file was deleted.

test/elixir-mode-font-tests.el renamed to test/elixir-mode-font-test.el

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
;; `elixir-test-with-temp-buffer' and `elixir-test-face-at' are both slightly
22
;; modified versions of the original at
33
;; https://github.com/lunaryorn/puppet-mode/blob/master/test/puppet-mode-test.el
4-
(defmacro elixir-test-with-temp-buffer (content &rest body)
5-
"Evaluate BODY in a temporary buffer with CONTENTS."
6-
(declare (debug t)
7-
(indent 1))
8-
`(with-temp-buffer
9-
(insert ,content)
10-
(elixir-mode)
11-
(font-lock-fontify-buffer)
12-
(goto-char (point-min))
13-
,@body))
144

155
(defun elixir-test-face-at (pos &optional content)
166
"Get the face at POS in CONTENT.
File renamed without changes.

0 commit comments

Comments
 (0)