]> git.eshelyaron.com Git - emacs.git/commit
Allow jumping to ert failure definitions
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 24 Jan 2022 13:00:50 +0000 (14:00 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 24 Jan 2022 13:01:06 +0000 (14:01 +0100)
commitead95479032f342eb7a493499f9edc7f2f2ec759
tree655e7895db0c13692cfaedc3e4daf3e5902d4cc1
parentd0b9e269ee797cacf079ece5eaa54e846255cdc8
Allow jumping to ert failure definitions

* lisp/emacs-lisp/ert.el (ert-test):
(ert-deftest):  Store the file name.
(ert-test-location): New function.
(ert-run-tests-batch): Use it.

* lisp/emacs-lisp/find-func.el (find-ert-deftest-regexp): New
variable.
(find-function-regexp-alist): Add ert-deftest (bug#22471).

Based on code by Phillip Lord <phillip.lord@russet.org.uk>.
lisp/emacs-lisp/ert.el
lisp/emacs-lisp/find-func.el