[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding macro-generated ert test definitions (WAS: [Emacs-diffs] master

From: Noam Postavsky
Subject: Finding macro-generated ert test definitions (WAS: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, etc., of unterminated strings.)
Date: Tue, 22 May 2018 18:55:27 -0400

On 22 May 2018 at 15:21, João Távora <address@hidden> wrote:

> Also M-x ert-find-test-other-window could have helped you, but it
> doesn't (brings me to the beginning of the file, which isn't helpful). I
> don't know why, does anyone?

It works by searching the source file for "(ert-deftest TEST-NAME",
but in this case TEST-NAME doesn't occur in the source, it's produced
at compile time by the define-electric-pair-test macro.

See ert--find-test-regexp and find-function-search-for-symbol.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]