Skip to content

Commit

Permalink
Remove ert-runner etc deps
Browse files Browse the repository at this point in the history
  • Loading branch information
davidshepherd7 committed Feb 13, 2024
1 parent a211f53 commit eb1b264
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
4 changes: 1 addition & 3 deletions Cask
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
(source gnu)

(development
(depends-on "ert-runner")
(depends-on "el-mock")
(depends-on "f")
;; For testing custom types
(depends-on "validate")

;; For testing interactions
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ clean :
test: build test-unit

test-unit:
cask exec ert-runner
cask ${EMACS} --batch -L . -L test -l frames-only-mode-test.el -l revertable-set-test.el -f ert-run-tests-batch

test-load:
cask ${EMACS} -Q --chdir . --script "load-test/loading-test.el"
Expand Down
8 changes: 8 additions & 0 deletions test/frames-only-mode-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
(require 'frames-only-mode)
(require 'validate)

(defmacro with-frames-only-mode (&rest body)
`(unwind-protect
(progn
(frames-only-mode 1)
,@body)
(frames-only-mode 0)))


(defmacro fom-rollback-test (expr)
"Check expr before, during and after toggling frames-only-mode.
Expand Down
2 changes: 2 additions & 0 deletions test/revertable-set-test.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

(require 'frames-only-mode)

(ert-deftest revertable-set-set-outside ()
""
(let ((lm/foo 1)
Expand Down
18 changes: 0 additions & 18 deletions test/test-helper.el

This file was deleted.

0 comments on commit eb1b264

Please sign in to comment.