all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Xiyue Deng" <manphiz@gmail.com>, "Mattias Engdegård" <mattiase@acm.org>
Cc: 66782@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	[thread overview]
Message-ID: <83y1fncl4k.fsf@gnu.org> (raw)
In-Reply-To: <87msw393z8.fsf@debian-hx90.lan> (message from Xiyue Deng on Fri,  27 Oct 2023 13:59:07 -0700)

> From: Xiyue Deng <manphiz@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.





  reply	other threads:[~2023-10-28  6:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-27 20:59 bug#66782: 29.1; ERT tests reports test redefined depending on loading sequence Xiyue Deng
2023-10-28  6:32 ` Eli Zaretskii [this message]
2023-10-28  9:39   ` bug#66782: 29.1; ERT tests report " Xiyue Deng
2023-10-28  9:48     ` Eli Zaretskii
2023-10-28 11:14       ` Xiyue Deng
2023-10-28 11:34         ` Eli Zaretskii
2023-10-28 11:50           ` Xiyue Deng
2023-10-28 12:03             ` Eli Zaretskii
2023-10-28 12:46               ` Mattias Engdegård
2023-10-28 21:19                 ` Xiyue Deng
2023-10-29 12:09                   ` Mattias Engdegård
2023-10-29 21:53                     ` Xiyue Deng
2023-10-30 12:04                       ` Mattias Engdegård
2023-10-30 20:47                         ` Xiyue Deng
2023-11-02 17:17                           ` Xiyue Deng
2023-11-02 18:56                             ` Mattias Engdegård
2023-11-02 22:00                               ` Xiyue Deng
2023-11-03 17:14                                 ` Mattias Engdegård
2023-11-03 17:56                                   ` Xiyue Deng
2023-11-04  8:51                                     ` Eli Zaretskii
2023-10-28 19:41               ` Xiyue Deng

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=83y1fncl4k.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=66782@debbugs.gnu.org \
    --cc=manphiz@gmail.com \
    --cc=mattiase@acm.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.