From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Subject: Re: ert: Where to define tests?
Date: Mon, 01 Jul 2013 12:53:13 +0200 [thread overview]
Message-ID: <51D15F99.409@online.de> (raw)
In-Reply-To: <CAA7qzwhp-1hPMarz0EEvc_W=jYczOe4Fq=VVub+1Qp70E7dt6w@mail.gmail.com>
Am 28.06.2013 01:21, schrieb Moritz Ulrich:
> This question came up in irc today:
>
> Where should one define ert tests?
>
> - In a separate file, to keep the source clean?
> - In the source files itself?
> - Should the file (require 'ert)?
> - (eval-after-load 'ert '(...))?
>
> 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.
>
> Cheers,
> Moritz Ulrich
>
>
Hi Moritz,
IMHO there is no general answer, while mostly a separate file seems preferable. Writing tests might introduce bugs inside tests, which should not affect the source.
OTOH in some cases it might make sense not to use a source until tests passed.
Then making it part of the source seems consequent.
Cheers,
Andreas
prev parent reply other threads:[~2013-07-01 10:53 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
2013-07-01 10:53 ` Andreas Röhler [this message]
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=51D15F99.409@online.de \
--to=andreas.roehler@online.de \
--cc=emacs-devel@gnu.org \
/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.