aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-30 00:22:24 -0500
committerCraig Jennings <c@cjennings.net>2026-04-30 00:22:24 -0500
commit29c21851bddf76c5fd659d4225bb426fc1396750 (patch)
treedb092a78fe65212c483754268bda2b194266c213 /tests
parent6102ef81e7cc8af7cf847906cbc1bb27fc8a75e5 (diff)
downloadgloss-29c21851bddf76c5fd659d4225bb426fc1396750.tar.gz
gloss-29c21851bddf76c5fd659d4225bb426fc1396750.zip
chore: add Cask + ert-runner test infrastructure
Replace the bare emacs --batch test runner with cask exec ert-runner. The Makefile test targets now delegate. validate-parens, compile, and lint stay on bare emacs --batch. Running cask once per file would slow them down for no real win. Adds: - Cask file declaring sources and ert-runner as a dev dep - .ert-runner config adding . and tests to load-path - tests/test-helper.el placeholder for future test setup - .gitignore entry for .cask/ All 88 tests pass in 0.19s via the new path.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-helper.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test-helper.el b/tests/test-helper.el
new file mode 100644
index 0000000..783fafa
--- /dev/null
+++ b/tests/test-helper.el
@@ -0,0 +1,17 @@
+;;; test-helper.el --- Test setup for ert-runner -*- lexical-binding: t -*-
+
+;; SPDX-License-Identifier: GPL-3.0-or-later
+
+;;; Commentary:
+
+;; Loaded automatically by ert-runner before test files. Adds the
+;; tests/ directory to `load-path' so `(require \\='testutil-gloss)' and
+;; sibling testutil files resolve.
+
+;;; Code:
+
+(let ((tests-dir (file-name-directory (or load-file-name buffer-file-name))))
+ (add-to-list 'load-path tests-dir))
+
+(provide 'test-helper)
+;;; test-helper.el ends here