|
| 1 | +;;; test-sanity.el --- Behavior-Driven test for phpactor -*- lexical-binding: t; -*- |
| 2 | + |
| 3 | +;; Copyright (C) 2018 Friends of Emacs-PHP development |
| 4 | + |
| 5 | +;; Author: Mikael Kermorgant <mikael@kgtech.fi> |
| 6 | +;; Keywords: maint |
| 7 | + |
| 8 | +;; This program is free software; you can redistribute it and/or modify |
| 9 | +;; it under the terms of the GNU General Public License as published by |
| 10 | +;; the Free Software Foundation, either version 3 of the License, or |
| 11 | +;; (at your option) any later version. |
| 12 | + |
| 13 | +;; This program is distributed in the hope that it will be useful, |
| 14 | +;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | +;; GNU General Public License for more details. |
| 17 | + |
| 18 | +;; You should have received a copy of the GNU General Public License |
| 19 | +;; along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 20 | + |
| 21 | +;;; Commentary: |
| 22 | + |
| 23 | +;; A BDD test code based on Buttercup. |
| 24 | +;; https://github.com/jorgenschaefer/emacs-buttercup |
| 25 | + |
| 26 | +;;; Code: |
| 27 | +(require 'buttercup) |
1 | 28 | (require 'phpactor) |
2 | 29 |
|
3 | 30 | (defun buffer-string* (buffer) |
|
11 | 38 |
|
12 | 39 | (describe "var: `phpactor-install-directory'" |
13 | 40 | (it "should have some value" |
14 | | - (display-warning 'buttercup (format "phpactor install folder is : %s" phpactor-install-directory)) |
| 41 | + (display-warning 'buttercup (format "phpactor install folder is : %s" phpactor-install-directory) :debug) |
15 | 42 | (expect phpactor-install-directory :not :to-be nil) |
16 | 43 | )) |
17 | 44 |
|
18 | 45 | (describe ": `phpactor--lisp-directory'" ;; I prefer having a test as I'm not that really fine with it being nil |
19 | 46 | (it "should have some value" |
20 | | - (display-warning 'buttercup (format "phpactor lisp folder is : %s" phpactor--lisp-directory)) |
| 47 | + (display-warning 'buttercup (format "phpactor lisp folder is : %s" phpactor--lisp-directory) :debug) |
21 | 48 | (expect phpactor--lisp-directory :not :to-be nil) |
22 | 49 | )) |
23 | 50 |
|
|
42 | 69 | (expect 'php-project-get-root-dir :to-have-been-called) |
43 | 70 | ) |
44 | 71 | )) |
| 72 | + |
| 73 | +(provide 'test-sanity) |
| 74 | +;;; test-sanity.el ends here |
0 commit comments