diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-19 13:09:54 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-19 13:09:54 -0500 |
| commit | d914986a59a66cf2284ea13cf5af29c58da2ff2b (patch) | |
| tree | d665964532d65037af55c945fa32d49df652fdf6 /.claude | |
| parent | ff747056a05792d6212ff05a9f5343fd804cbff0 (diff) | |
| download | dotemacs-d914986a59a66cf2284ea13cf5af29c58da2ff2b.tar.gz dotemacs-d914986a59a66cf2284ea13cf5af29c58da2ff2b.zip | |
chore: sync elisp-testing.md (testutil pattern generalized)
Diffstat (limited to '.claude')
| -rw-r--r-- | .claude/rules/elisp-testing.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.claude/rules/elisp-testing.md b/.claude/rules/elisp-testing.md index 6cb59b1c..38839025 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-<module>.el` — tests for `modules/<module>.el` +- `tests/test-<module>.el` — tests for `<module>.el` - `tests/test-<module>--<helper>.el` — tests for a specific private helper (matches `<module>--<helper>` function naming) -- `tests/testutil-<module>.el` — fixtures and mocks for one module -- `tests/testutil-general.el`, `testutil-filesystem.el`, `testutil-org.el` — cross-module helpers +- `tests/testutil-<module>.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. |
