all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* FEATURE REQUEST: Make etags recognize 'ert-deftest' by default in .el files
@ 2022-07-23 22:25 Robert Weiner
  2022-07-24  5:46 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Weiner @ 2022-07-23 22:25 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 768 bytes --]

ert.el is a standard testing framework in Emacs which uses 'ert-deftest' to
define test functions.  Because it does not begin with 'def', it is not
recognized as a definition by etags and libraries or packages with many
tests will not have these show up for navigation when using default calls
to etags.

I would suggest one of two solutions:

1.  Modify etags to automatically recognize such definitions by default.
(I tried using the --regex option but had little luck with that due to it
not liking an opening paren without a closing one in the regex).

2. Add an alias of 'def-ert-test' and suggest people use that instead so
that it is picked up by etags.  #1 is obviously better given the number of
existing test definitions that exist already.

Cheers,

-- rsw

[-- Attachment #2: Type: text/html, Size: 1705 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-24  5:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23 22:25 FEATURE REQUEST: Make etags recognize 'ert-deftest' by default in .el files Robert Weiner
2022-07-24  5:46 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.