Keep find-ert-test-buffer from moving point.

This commit is contained in:
Alexander M 2017-05-20 14:07:44 +02:00 committed by Eivind Fonn
parent 4fa8ca40c2
commit 113794f4e8
1 changed files with 2 additions and 1 deletions

View File

@ -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."