psql - improve test coverage from 41% to 88%

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: psql - improve test coverage from 41% to 88%
Date: 2019-08-28 14:31:00
Message-ID: alpine.DEB.2.21.1908281618520.28828@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello devs,

The attached patch improves psql code coverage by adding a specific TAP
test. The 1709 tests take 4 seconds CPU (6.3 elapsed time) on my laptop.

The infrastructure is updated to require perl module "Expect", allowing to
test interactive features such as tab completion and prompt changes.

Coverage in "src/bin/psql" jumps from 40.0% of lines and 41.9% of
functions to 78.4% of lines and 98.1% of functions with "check-world".

--
Fabien.

Attachment Content-Type Size
psql-tap-1.patch text/x-diff 53.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-08-28 14:43:28 Re: Improve error detections in TAP tests by spreading safe_psql
Previous Message Tom Lane 2019-08-28 14:00:59 Re: Crash in BRIN summarization