Re: RFC: adding pytest as a supported test framework

Поиск
Список
Период
Сортировка
От Jelte Fennema-Nio
Тема Re: RFC: adding pytest as a supported test framework
Дата
Msg-id DFJ7Y36W9C86.3K416WEM16SJF@jeltef.nl
обсуждение исходный текст
Ответ на Re: RFC: adding pytest as a supported test framework  (Jacob Champion <jacob.champion@enterprisedb.com>)
Список pgsql-hackers
On Wed Jan 7, 2026 at 2:01 AM CET, Jacob Champion wrote:
> It's perfectly okay if you'd like to tie the GoAway proposal to this,
> but that seems like it's unlikely to result in short-term success.

To be clear, I did not mean to tie the GoAway proposal to this. I meant
to tie committing of *automated tests* for GoAway to this. Given how
little of our libpq interface is tested, I don't think that needs to be
a blocker for the GoAway feature itself.

Timing wise, I'd myself much rather have this patchset as an early PG20
commit than a last minute PG19 one.

> Writing code to start and stop a server and run SQL is a matter of
> programming. Writing a test suite that newcomers can intuitively use,
> and test interesting new things with, is a long-term collaboration. I
> am much more interested in doing the latter, because we already have
> the former, and personally I'm happy to build momentum slowly and wait
> on a group of people who are in a good place to discuss it.

Sure, it's a matter of programming. But my feeling is that most people
on the list don't want to build their own test infrastructure. They want
good infrastructure to "just exist", so they can write tests easily with
it.

So that's why after trying to use your initial attempt for a test of
mine, I moved the useful parts to a shared part of the codebase. So that
people can easily try writing a test with it, and explain what they like
or don't like. Instead of having to create or copy a bunch of
boilerplate every time they want to do something.

In any case, that's where we're at now. It would be nice if you could
take a look at the actual patchset at some point, but no rush.



В списке pgsql-hackers по дате отправления: