Keep find-ert-test-buffer from moving point.
This commit is contained in:
parent
4fa8ca40c2
commit
113794f4e8
|
@ -752,7 +752,8 @@ The body of the advice is in BODY."
|
|||
|
||||
(defun spacemacs//find-ert-test-buffer (ert-test)
|
||||
"Return the buffer where ERT-TEST is defined."
|
||||
(car (find-definition-noselect (ert-test-name ert-test) 'ert-deftest)))
|
||||
(save-excursion
|
||||
(car (find-definition-noselect (ert-test-name ert-test) 'ert-deftest))))
|
||||
|
||||
(defun spacemacs/ert-run-tests-buffer ()
|
||||
"Run all the tests in the current buffer."
|
||||
|
|
Loading…
Reference in a new issue