Change how unit tests are set up and run

Moves init.test.el to core/test/init.el and initializes the test
environment from within the current session, rather than through a bash
script middle man.

TODO: don't buffer the unit test results
This commit is contained in:
Henrik Lissner 2019-08-27 00:06:46 -04:00
parent af26a14230
commit aad0b2f842
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 74 additions and 110 deletions

9
core/test/helpers.el Normal file
View file

@ -0,0 +1,9 @@
;; -*- no-byte-compile: t; -*-
;;; core/test/helpers.el
(defmacro insert!! (&rest text)
"Insert TEXT in buffer, then move cursor to last {0} marker."
`(progn
(insert ,@text)
(when (search-backward "{0}" nil t)
(replace-match "" t t))))