[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding macro-generated ert test definitions (WAS: [Emacs-diffs] mas
From: |
Eli Zaretskii |
Subject: |
Re: Finding macro-generated ert test definitions (WAS: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, etc., of unterminated strings.) |
Date: |
Thu, 24 May 2018 19:41:14 +0300 |
> From: Noam Postavsky <address@hidden>
> Date: Wed, 23 May 2018 18:40:24 -0400
> Cc: João Távora <address@hidden>,
> Alan Mackenzie <address@hidden>, Tino Calancha <address@hidden>,
> Emacs developers <address@hidden>
>
> How's this?
>
> --- i/doc/misc/ert.texi
> +++ w/doc/misc/ert.texi
> @@ -386,5 +386,10 @@ How to Write Tests
>
> address@hidden ert-find-test-other-window
> Just like @code{find-function} is only able to find where a function
> was defined if the function was loaded from a file, ERT is only able
> -to find where a test was defined if the test was loaded from a file.
> +to find where a test was defined (via
> address@hidden) if the test was loaded from a file.
> +Since this relies on a textual search of the source, it will likely
> +fail if you use a macro which expands into the @code{ert-deftest}
> +form, especially if the test name itself is absent from the source.
Looks like a good addition, thanks.