pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: TAP testing for psql's tab completion code
Date: Mon, 30 Dec 2019 15:40:14 +0100 (CET)
Message-ID: <alpine.DEB.2.21.1912301530270.14206@pseudo> (raw)
In-Reply-To: <4030.1577715040@sss.pgh.pa.us>
References: <10967.1577562752@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912282212060.24861@pseudo>
	<7904.1577573534@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912290748020.889@pseudo>
	<28327.1577639622@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912291816440.14206@pseudo>
	<30270.1577641991@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912291950040.14206@pseudo>
	<9761.1577647376@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912301144560.14206@pseudo>
	<4030.1577715040@sss.pgh.pa.us>


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.





view thread (12+ messages)

Message-ID: <alpine.DEB.2.21.1912301530270.14206@pseudo>
Permalink:  ../alpine.DEB.2.21.1912301530270.14206@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.21.1912301530270.14206@pseudo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, tgl@sss.pgh.pa.us
  Subject: Re: TAP testing for psql's tab completion code
  In-Reply-To: <alpine.DEB.2.21.1912301530270.14206@pseudo>
  References: <10967.1577562752@sss.pgh.pa.us> <alpine.DEB.2.21.1912282212060.24861@pseudo> <7904.1577573534@sss.pgh.pa.us> <alpine.DEB.2.21.1912290748020.889@pseudo> <28327.1577639622@sss.pgh.pa.us> <alpine.DEB.2.21.1912291816440.14206@pseudo> <30270.1577641991@sss.pgh.pa.us> <alpine.DEB.2.21.1912291950040.14206@pseudo> <9761.1577647376@sss.pgh.pa.us> <alpine.DEB.2.21.1912301144560.14206@pseudo> <4030.1577715040@sss.pgh.pa.us> <alpine.DEB.2.21.1912301530270.14206@pseudo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox