Re: [PROPOSAL] TAP test example - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PROPOSAL] TAP test example
Date
Msg-id 9278.1447950233@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PROPOSAL] TAP test example  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Jim Nasby <Jim.Nasby@bluetreble.com> writes:
> On 11/19/15 9:57 AM, Tom Lane wrote:
>> Agreed.  We aren't going to accept any core tests that depend on DBI/DBD.
>> Now, that might be a fine example for tests written to test something that
>> uses Postgres ... but not as an example of how to write a core test.

> Isn't one of the goals of the TAP framework to be able to write SQL 
> level tests where we don't have to worry about random output changes, 
> like what line number on a script caused an error?

So?

Actually, I would say that one of the most serious black marks against
every one of the TAP tests we've got is the difficulty of finding out why
a test failed, when that happens.  "ok" versus "not ok" simply doesn't cut
it.  So the idea of not reporting what the actual output was doesn't seem
attractive to me at all.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: GIN pending list clean up exposure to SQL
Next
From: Nikolay Shaplov
Date:
Subject: Re: [PROPOSAL] TAP test example