emacs-devel
[Top][All Lists]
Advanced

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

Re: ert: Where to define tests?


From: Xue Fuqiao
Subject: Re: ert: Where to define tests?
Date: Fri, 28 Jun 2013 10:49:03 +0800

On Fri, Jun 28, 2013 at 7:21 AM, Moritz Ulrich <address@hidden> wrote:
> This question came up in irc today:
>
> Where should one define ert tests?
>
> - In a separate file, to keep the source clean?

I think so.  See test/automated/[fn:1] for examples.

>   - (eval-after-load 'ert '(...))?

Well, we do not recommend to use `eval-after-load'.  (See
https://github.com/xfq/emacs-contributor-guide/issues/1)

> It doesn't look like this is documented. If there's a consent on this,
> it should be documented in the ert Info page as well as in the info
> page about packaging.

+1

Footnotes:

[fn:1] http://git.savannah.gnu.org/cgit/emacs.git/tree/test/automated

--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/



reply via email to

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