From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
Cc: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Thoughts on unit testing? |
Date: | 2017-08-11 13:55:19 |
Message-ID: | 22671.1502459719@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> writes:
> On 8/10/17 17:53, Thomas Munro wrote:
>> The current regression tests, isolation tests and TAP tests are very
>> good (though I admit my experience with TAP is limited), but IMHO we
>> are lacking support for C-level unit testing. Complicated, fiddly
>> things with many states, interactions, edge cases etc can be hard to
>> get full test coverage on from the outside. Consider
>> src/backend/utils/mmgr/freepage.c as a case in point.
> I don't have a good idea how to address this, but I agree that something
> in this area would be widely useful.
I don't think anyone doubts it would be useful. The question is can we
get to something useful with an acceptable level of effort and overhead.
So far I've not seen anything promising in that sense.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alex K | 2017-08-11 13:55:56 | Re: Parallel COPY FROM execution |
Previous Message | Chris Travers | 2017-08-11 13:45:10 | Re: Funny WAL corruption issue |