From 9c61a64a539bdff55b149dc0eee86366a0f694c7 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 19 Apr 2026 13:09:57 -0500 Subject: chore: sync elisp-testing.md (testutil pattern generalized) --- .claude/rules/elisp-testing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.claude/rules/elisp-testing.md') diff --git a/.claude/rules/elisp-testing.md b/.claude/rules/elisp-testing.md index 6cb59b1..3883902 100644 --- a/.claude/rules/elisp-testing.md +++ b/.claude/rules/elisp-testing.md @@ -11,10 +11,10 @@ Use `ert-deftest` for all tests. One test = one scenario. ## File Layout -- `tests/test-.el` — tests for `modules/.el` +- `tests/test-.el` — tests for `.el` - `tests/test---.el` — tests for a specific private helper (matches `--` function naming) -- `tests/testutil-.el` — fixtures and mocks for one module -- `tests/testutil-general.el`, `testutil-filesystem.el`, `testutil-org.el` — cross-module helpers +- `tests/testutil-.el` — fixtures and mocks scoped to one module +- `tests/testutil-*.el` — cross-module helpers (shared fixtures, generic mocks, filesystem helpers); name them for what they help with Tests must `(require 'module-name)` before the testutil file that stubs its internals, unless documented otherwise. Order matters — a testutil that defines a stub can be shadowed by a later `require` of the real module. -- cgit v1.2.3