Skip to content

Commit 04f0837

Browse files
committed
Add f and g keybinds to cider-test-report-mode-map
1 parent 00dc7fa commit 04f0837

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### New Features
66

7+
* `f` key reruns failed tests on the test-report buffer.
8+
* `g` key reruns test at point on the test-report buffer.
79
* Debugger now supports step-in.
810
* Improve CIDER's menu-bar menu:
911
- Thoroughly reorganize it and split it into 3 separate menus;

cider-test.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@
164164
(define-key map (kbd "t") #'cider-test-jump)
165165
(define-key map (kbd "d") #'cider-test-ediff)
166166
(define-key map (kbd "e") #'cider-test-stacktrace)
167+
;; `f' for "run failed".
168+
(define-key map "f" #'cider-test-rerun-tests)
169+
;; `g' generally reloads the buffer. The closest thing we have to that is
170+
;; "run the test at point". But it's not as nice as rerunning all tests in
171+
;; this buffer.
172+
(define-key map "g" #'cider-test-run-test)
167173
(define-key map "q" #'cider-popup-buffer-quit-function)
168174
(easy-menu-define cider-test-report-mode-menu map
169175
"Menu for CIDER's test result mode"

0 commit comments

Comments
 (0)