[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ert: Where to define tests?
From: |
Andreas Röhler |
Subject: |
Re: ert: Where to define tests? |
Date: |
Mon, 01 Jul 2013 12:53:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
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 in Thread] |
Current Thread |
[Next in Thread] |
- Re: ert: Where to define tests?,
Andreas Röhler <=