Re: [PROPOSAL] TAP test example

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PROPOSAL] TAP test example
Дата
Msg-id 9278.1447950233@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PROPOSAL] TAP test example  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: GIN pending list clean up exposure to SQL
Следующее
От: Nikolay Shaplov
Дата:
Сообщение: Re: [PROPOSAL] TAP test example