all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: Moritz Ulrich <moritz@tarn-vedra.de>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: ert: Where to define tests?
Date: Fri, 28 Jun 2013 10:49:03 +0800	[thread overview]
Message-ID: <CAAF+z6E-EuZtJTYjVeKiKBExDrP4Yk6oM0DVoJdyxTfqH62DPg@mail.gmail.com> (raw)
In-Reply-To: <CAA7qzwhp-1hPMarz0EEvc_W=jYczOe4Fq=VVub+1Qp70E7dt6w@mail.gmail.com>

On Fri, Jun 28, 2013 at 7:21 AM, Moritz Ulrich <moritz@tarn-vedra.de> 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	other threads:[~2013-06-28  2:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-27 23:21 ert: Where to define tests? Moritz Ulrich
2013-06-28  2:49 ` Xue Fuqiao [this message]
2013-07-01 10:53 ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAF+z6E-EuZtJTYjVeKiKBExDrP4Yk6oM0DVoJdyxTfqH62DPg@mail.gmail.com \
    --to=xfq.free@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=moritz@tarn-vedra.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.