Re: Test code is worth the space

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Test code is worth the space
Date: 2015-08-08 19:24:13
Message-ID: CAM3SWZQTZHdm=TKbOqEma6nN6TkUXeZfQRAYxV8SE6YjGAzQ_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Aug 8, 2015 at 9:47 AM, Noah Misch <noah(at)leadboat(dot)com> wrote:
> We've too often criticized patches for carrying many lines/bytes of test case
> additions. Let's continue to demand debuggable, secure tests that fail only
> when something is wrong, but let's stop pushing for test minimalism. Such
> objections may improve the individual patch, but that doesn't make up for the
> chilling effect on test contributions. I remember clearly the first time I
> submitted thorough test coverage with a feature. Multiple committers attacked
> it in the name of brevity. PostgreSQL would be better off with 10x its
> current test bulk, even if the average line of test code were considerably
> less important than we expect today.

I strongly agree. I am fond of the example of external sorting, which
at present has exactly zero test coverage, even though in production
those code paths are exercised all the time.

I think that there needs to be a way of running an extended set of
regression tests. I could definitely respect the desire for minimalism
when it comes to adding tests to the regression tests proper if there
was an extended set of tests that could be run during development less
frequently. I thought about doing the extended set as a satellite
project, but that may not be workable.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2015-08-08 21:09:27 Re: Test code is worth the space
Previous Message Bruce Momjian 2015-08-08 18:49:21 Re: 9.5 release notes