diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 01:20:28 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 01:20:28 -0500 |
| commit | c00aaab387e1deb34129fde7670ef28b721ea571 (patch) | |
| tree | 52da57cbfa5de22b317360a72cc9990234188d11 /modules/system-utils.el | |
| parent | 61ddfe9f7a9b2838e9c791027e5692cfd6ee128c (diff) | |
| download | dotemacs-c00aaab387e1deb34129fde7670ef28b721ea571.tar.gz dotemacs-c00aaab387e1deb34129fde7670ef28b721ea571.zip | |
test(test-runner): cover per-project state + small interactive wrappers
`test-test-runner.el` covered the `cj/test--do-*` helpers and the focus-add / focus-remove / extract-test-names families. The state machinery and small wrappers were the gap.
22 new tests cover:
- `cj/test--project-root`: nil when projectile is absent, expanded trailing-slash when present.
- `cj/test--state-key`: falls back to `default-directory` without a project root.
- `cj/test--project-state`: creates the entry lazily, reuses on second call.
- `cj/test--state-get` / `cj/test--state-put`: roundtrip + default fallback.
- `cj/test--current-focused-files` / `cj/test--current-mode` getter/setter pairs.
- `cj/test--sync-legacy-state`: mirrors per-project state into the public legacy vars.
- `cj/test--remember-loaded-project-root`: pushes once via `cl-pushnew`, no-op without a root.
- `cj/test--file-in-directory-p`: true for a subpath, false for a sibling.
- `cj/test--get-test-directory`: prefers `tests/` subdir, falls back to the global default.
- `cj/test--get-test-files`: lists `test-*.el` files only, basenames.
- `cj/test--ensure-test-dir-in-load-path`: adds the dir.
- `cj/test-focus-clear` / `cj/test-toggle-mode` / `cj/test-view-focused` / `cj/test-run-all`: behavior + messaging.
Diffstat (limited to 'modules/system-utils.el')
0 files changed, 0 insertions, 0 deletions
