Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ilwGW-0001h9-Tl for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Dec 2019 14:43:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ilwGV-0005HP-PF for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Dec 2019 14:43:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ilwGV-0005HG-Ga for pgsql-hackers@lists.postgresql.org; Mon, 30 Dec 2019 14:43:27 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ilwGS-0000MA-Sy for pgsql-hackers@lists.postgresql.org; Mon, 30 Dec 2019 14:43:27 +0000 Received: from smtp-4.mines-paristech.fr (smtp-4.ensmp.fr [77.158.173.143]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id 8CA20578F8; Mon, 30 Dec 2019 15:40:21 +0100 (CET) Received: from pseudo (53.237.219.88.rev.sfr.net [88.219.237.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-4.mines-paristech.fr (Postfix) with ESMTPSA id 4A5DA2C0091; Mon, 30 Dec 2019 15:40:19 +0100 (CET) Date: Mon, 30 Dec 2019 15:40:14 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Tom Lane cc: PostgreSQL Developers Subject: Re: TAP testing for psql's tab completion code In-Reply-To: <4030.1577715040@sss.pgh.pa.us> Message-ID: References: <10967.1577562752@sss.pgh.pa.us> <7904.1577573534@sss.pgh.pa.us> <28327.1577639622@sss.pgh.pa.us> <30270.1577641991@sss.pgh.pa.us> <9761.1577647376@sss.pgh.pa.us> <4030.1577715040@sss.pgh.pa.us> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: 0 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvdefhedgieeiucetufdoteggodetrfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffujgfkfhgfgggtsehttdertddtredvnecuhfhrohhmpefhrggsihgvnhcuvefqgffnjffquceotghovghlhhhosegtrhhirdgvnhhsmhhprdhfrheqnecukfhppeekkedrvdduledrvdefjedrheefnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Tom, >> I do not think it is a good idea, because help output is quite large, >> there are many of them, and we should certainly not want it stored >> repeatedly in output files for diffs. > > Hm, I don't follow --- we are most certainly not going to exercise > \help for every possible SQL keyword, that'd just be silly. I am silly. Price is pretty low, it helps with coverage in "sql_help.c, it checks that the help files returns adequate results so that adding new help contents does not hide existing stuff. I do not see why we should not do it, in TAP tests. The alternative is that the project tolerates substandard test coverage. The "psql" command is currently around 40-44%. > Having said that, the fact that \help now includes a version-dependent > URL in its output is probably enough to break the idea of testing it > with a conventional expected-output test, so maybe TAP is the only > way for that. The URL is a good thing, though. -- Fabien.