summaryrefslogtreecommitdiff
path: root/todo.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-15 19:58:15 -0600
committerCraig Jennings <c@cjennings.net>2026-02-15 19:58:15 -0600
commit61bfb79f2c55983697f87b9ba3961a9fb46de2fe (patch)
tree6a9ebc025dcd71cba68f4612aef7b658781f4b8f /todo.org
parent8eab9ccde339829c1866a40f51f942a6b36f2b02 (diff)
test: add 86 new tests, fix 3 production bugs, fix 8 stale tests
New test coverage (86 tests across 7 files): - custom-case: 43 tests (title-case-region, upcase-dwim, downcase-dwim) - custom-datetime: 10 tests (all insert methods with mocked time) - config-utilities: 11 tests (format-build-time type branching) - org-capture-config: 22 tests (date-prefix + event-content) Production bugs found and fixed: - custom-case: title-case-region crashes on whitespace/punctuation-only input (char-after returns nil when no word chars found) - org-capture-config: browser branch missing empty-string guard on :initial plist value, producing stray newline in capture output - mousetrap-mode: keymap never registered in minor-mode-map-alist, so mode was silently not blocking any mouse events. Now pushes/removes on toggle. Additional fixes: - local-repository: fix cons cell syntax bug in localrepo-initialize (was calling vars as functions instead of using cons) - dupre-theme tests: update rainbow-delimiter color expectations - mousetrap tests: update dashboard profile (primary-click → scroll+primary) - music completion test: bind completion-ignore-case to prevent pollution - Delete redundant interactive recording test (duplicate of ERT version) Refactoring: - org-capture-config: extract cj/org-capture--date-prefix pure function from cj/org-capture-format-event-headline for testability Test checklist: todo.org updated to [11/25], removed untestable modules
Diffstat (limited to 'todo.org')
-rw-r--r--todo.org19
1 files changed, 5 insertions, 14 deletions
diff --git a/todo.org b/todo.org
index fdebf9a2..8c3d08b6 100644
--- a/todo.org
+++ b/todo.org
@@ -153,27 +153,18 @@ Already using prescient with vertico. Extend to Corfu after migration.
** Testing & CI
-*** TODO [#B] Write Complete ERT Tests for This Config [7/31]
+*** TODO [#B] Write Complete ERT Tests for This Config [11/25]
Unit and Integration Tests should be added as subtasks below, marked done when complete.
*High-value test targets (no coverage, testable logic, daily use):*
-- [ ] custom-case — pure case conversion functions (upper/lower/title)
-- [ ] custom-datetime — date/timestamp insertion and formatting
-- [ ] host-environment — platform detection (env-macos-p, env-wayland-p, etc.)
+- [X] custom-case — 43 tests, 3 files (title-case-region, upcase-dwim, downcase-dwim)
+- [X] custom-datetime — 10 tests, 1 file (all methods, thin wrappers)
- [X] hugo-config — draft toggle, slug generation, post template (41 tests, 4 files)
-- [ ] org-capture-config — template building (relates to capture perf optimization)
+- [X] org-capture-config — 22 tests, 2 files (date-prefix + event-content; refactored format-event-headline)
- [X] modeline-config — custom segment construction (26 tests, 2 files)
-- [ ] external-open — file-type detection and external app dispatch
-- [ ] reconcile-open-repos — dirty repo scanning logic
-- [ ] media-utils — URL download/play logic
-- [ ] org-config — org-mode utility functions
-- [ ] org-export-config — export helper functions
-- [ ] local-repository — package snapshot logic
-- [ ] show-kill-ring — kill ring display logic
-- [ ] system-commands — reboot/logout/system action functions
-- [ ] config-utilities — debug helper functions
+- [X] config-utilities — 11 tests, 1 file (format-build-time)
*Modules with partial coverage (expand existing tests):*