GNU bug report logs - #66782
29.1; ERT tests reports test redefined depending on loading sequence

Previous Next

Package: emacs;

Reported by: Xiyue Deng <manphiz <at> gmail.com>

Date: Fri, 27 Oct 2023 21:01:02 UTC

Severity: normal

Found in version 29.1

Done: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
To: Xiyue Deng <manphiz <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 66782 <at> debbugs.gnu.org
Subject: bug#66782: 29.1; ERT tests report test redefined depending on loading sequence
Date: Sun, 29 Oct 2023 13:09:11 +0100
28 okt. 2023 kl. 23.19 skrev Xiyue Deng <manphiz <at> gmail.com>:

> To clarify one of my
> original proposals: if it makes no sense for a `ert-deftest' to depend
> on other `ert-deftest', I would say there is no reason for such a
> dependency, and people should move reusable components to a helper
> module instead.

There is no reason for one `ert-deftest` to make use of another, but was that the case here? I interpreted it as a test suite that spread its `ert-deftest` definitions over multiple .el files which isn't necessarily a bad way of organising them.

As said before, there is little sense in including the same individual tests from multiple 'root' .el files since that would run them more than once.

Perhaps that is what you meant? If so, please forgive me for the pedantry.





This bug report was last modified 1 year and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.