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 | ca95282d507c31dd0d32eed98936e5bf02bd1139 (patch) | |
| tree | 69c666d7d296795fb5f48fd9e60fabb1d6091ee6 /tests/test-coverage-core--intersect.el | |
| parent | ef528d304a7a1d8a633a4948145b774047af6c3f (diff) | |
| download | dotemacs-ca95282d507c31dd0d32eed98936e5bf02bd1139.tar.gz dotemacs-ca95282d507c31dd0d32eed98936e5bf02bd1139.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 'tests/test-coverage-core--intersect.el')
0 files changed, 0 insertions, 0 deletions
