Re: RFC: adding pytest as a supported test framework - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: RFC: adding pytest as a supported test framework
Date
Msg-id CAGECzQT418KE4Rk2d4CMwL8HFNE2B30+-XYv23rZVu-csDwDSw@mail.gmail.com
Whole thread Raw
In response to Re: RFC: adding pytest as a supported test framework  (Noah Misch <noah@leadboat.com>)
List pgsql-hackers
On Wed, 12 Jun 2024 at 01:48, Noah Misch <noah@leadboat.com> wrote:
> If we're going to test in a non-Perl language, I'd pick C over Python.
> <snip>
> We'd need a library like today's Perl
> PostgreSQL::Test to make C-language tests nice, but the same would apply to
> any new language.

P.P.S. We already write tests in C, we use it for testing libpq[1].
I'd personally definitely welcome a C library to make those tests
nicer to write, because I've written a fair bit of those in the past
and currently it's not very fun to do.

[1]: https://github.com/postgres/postgres/blob/master/src/test/modules/libpq_pipeline/libpq_pipeline.c



pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Track the amount of time waiting due to cost_delay
Next
From: Peter Eisentraut
Date:
Subject: Re: Proposal: Document ABI Compatibility