From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25131 invoked from network); 11 Jul 2021 16:42:53 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2021 16:42:53 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m2cXb-001oKo-Mr for ml@inbox.vuxu.org; Sun, 11 Jul 2021 11:42:51 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1m2cXb-008GUE-9i for ml@inbox.vuxu.org; Sun, 11 Jul 2021 11:42:51 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m2cXa-008GU6-Hg for ding@lists.math.uh.edu; Sun, 11 Jul 2021 11:42:50 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1m2cXX-001oKe-CN for ding@lists.math.uh.edu; Sun, 11 Jul 2021 11:42:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dvrcz0csNu2vRrysqanLVWWk6jvXAFwqkWMmwjWrSEE=; b=VWsyziU6J3/VevR52cz6d9iQFU k1aGA92ENfF/ysYRriFD4sAocM0oCzh299WtQdlglHzs1ZUU1SWK7sykJDOhA9OmE8Qq9gW1elyLO zgQKNhfnemyF/JYslCO2908vUyRhCiPJK6hwXnQbcc+2nnXER4hZFM0lrYMZ/QUXBzKg=; Received: from mail.ericabrahamsen.net ([52.70.2.18]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2cXQ-0004yv-W6 for ding@gnus.org; Sun, 11 Jul 2021 18:42:43 +0200 Received: from localhost (c-71-197-184-122.hsd1.wa.comcast.net [71.197.184.122]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 881D5FEB2F; Sun, 11 Jul 2021 16:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1626021753; bh=dvrcz0csNu2vRrysqanLVWWk6jvXAFwqkWMmwjWrSEE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=i9ZhYH3eg9QwMdkqdB/MHUMilwRF/cwFaxraWQwPTu9ItTwDFFSQKtAH4t34NiKiz /sO1HMAeYaUgv3RKqOzkWHClTmwEv0xLzpsalblVkvpASuftmrixmgEd8u+cXOevEZ Vm8Ju+xDhC84NDPWGHrGdUnlq9zmS3jQybOTcHxc= From: Eric Abrahamsen To: Adam =?utf-8?Q?Sj=C3=B8gren?= Cc: ding@gnus.org Subject: Re: is it possible to search by list-id? References: <875yxllhkr.fsf@gnus.jao.io> <87a6mxlzen.fsf@ucl.ac.uk> <87sg0oj38s.fsf@gnus.jao.io> <87eec8it4j.fsf@gnus.jao.io> <8735sn3qw5.fsf@gnus.jao.io> <874kd11qnr.fsf@ericabrahamsen.net> <87h7h1tjm2.fsf@tullinup.koldfront.dk> <87r1g4zwz6.fsf@ericabrahamsen.net> <87im1g7r2g.fsf@tullinup.koldfront.dk> Date: Sun, 11 Jul 2021 09:42:32 -0700 In-Reply-To: <87im1g7r2g.fsf@tullinup.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Sun, 11 Jul 2021 18:28:39 +0200") Message-ID: <87im1gzts7.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Adam Sj=C3=B8gren writes: > Eric writes: > >>> This is great! Are tests easy to write for Gnus? > >> They most certainly aren't! Almost all the crucial code that you'd want >> to test requires a full working Gnus installation, with a .newsrc.eld >> and local data. There's very little code isolation between the various >> bits, and any subsystem you try to test ends up calling all the other >> subsystems. > > I suspected as much - all the more admirable that you added some, then! > > It's my experience that retrofitting tests into a project is much more > complicated than having some from the beginning - but that's always easy > to say in hindsight... You're right -- it might be possible to isolate Gnus' elisp data structures from any on-disk/online behavior, but it would require pretty much a complete rewrite of everything, eeep. >> I wrote a separate package called gnus-mock to address this > > =F0=9F=91=8D > >> I also started writing an interactive test suite for this package, so >> you could start it up and run the tests, and it would simulate user >> behavior, but my courage failed me before I got very far. Maybe someday >> when I'm in bed for a week recovering from a broken leg or pneumonia >> I'll finish it. > > ;-) I hope you'll find the time and energy some day, without having to > become ill or sustain physical injury first! I hope so too!