diff options
| author | Craig Jennings <c@cjennings.net> | 2026-11-20 16:20:30 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-11-20 16:20:30 -0600 |
| commit | 0b3542bc1518d43b45165bd66c1fda03eeff8bcb (patch) | |
| tree | 4bcfb5c07ff1eac0c0023de44ab258bdfeae4219 /tests/test-test-runner.el | |
| parent | 4df81e5e751cf50c45e1b82e694394ddcb133ada (diff) | |
| download | dotemacs-0b3542bc1518d43b45165bd66c1fda03eeff8bcb.tar.gz dotemacs-0b3542bc1518d43b45165bd66c1fda03eeff8bcb.zip | |
I'm in the terminal far more than I run tests, so it gets the easier key.
- The terminal commands move from C-; x to C-; t.
- The test runner moves from C-; t to C-; T.
- C-; x is now unbound.
- The terminal prefix gains a which-key label.
Diffstat (limited to 'tests/test-test-runner.el')
| -rw-r--r-- | tests/test-test-runner.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test-test-runner.el b/tests/test-test-runner.el index 6854b72e..c5416352 100644 --- a/tests/test-test-runner.el +++ b/tests/test-test-runner.el @@ -497,5 +497,19 @@ comparing against the directory with a trailing slash rejects it." (ert-delete-test 'test-testrunner-project-names-b)))) (test-testrunner-teardown)) +;;; bindings + +(ert-deftest test-testrunner-prefix-is-capital-t () + "Normal: the test runner map sits on C-; T with its commands under it." + (should (eq (keymap-lookup cj/custom-keymap "T") cj/testrunner-map)) + (should (eq (keymap-lookup cj/custom-keymap "T r") #'cj/test-run-smart)) + (should (eq (keymap-lookup cj/custom-keymap "T R") #'cj/test-run-all)) + (should (eq (keymap-lookup cj/custom-keymap "T .") #'cj/run-test-at-point)) + (should (eq (keymap-lookup cj/custom-keymap "T t") #'cj/test-toggle-mode))) + +(ert-deftest test-testrunner-lowercase-t-prefix-is-released () + "Boundary: the test runner no longer claims C-; t, which the terminal owns." + (should-not (eq (keymap-lookup cj/custom-keymap "t") cj/testrunner-map))) + (provide 'test-test-runner) ;;; test-test-runner.el ends here |
