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: Eli Zaretskii <eliz <at> gnu.org>
To: Xiyue Deng <manphiz <at> gmail.com>, Mattias EngdegÄrd <mattiase <at> acm.org>
Cc: 66782 <at> debbugs.gnu.org
Subject: bug#66782: 29.1; ERT tests reports test redefined depending on loading sequence
Date: Sat, 28 Oct 2023 09:32:43 +0300
> From: Xiyue Deng <manphiz <at> gmail.com>
> Date: Fri, 27 Oct 2023 13:59:07 -0700
> 
> As you can see there's only one `first-test' defined.  The error message
> is misleading.
> 
> A real world example of this can be found in lsp-mode, where
> test/lsp-clangd-test.el[1] requires test/lsp-integration-test.el[2].
> See also the discussion on an Debian bug[3].

If test2 requires test1, why are both of them explicitly run from the
command line?  Isn't that redundant, since running test2 will also run
the tests defined by test1?

> However, I'd like to see whether upstream considers this type of usage
> well-formed and should be supported.  If not, upstream should give a
> warning on such usage, such as printing a warning when requiring other
> modules that has `ert-deftest'.  Meanwhile, an improved error message
> would also be great.

I could agree to improving the error message, but I don't see why we
should do anything beyond that, FWIW.

Adding Mattias, who added this check 2 years ago.




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.