Re: RFC: adding pytest as a supported test framework

From: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>, Daniel Gustafsson <daniel(at)yesql(dot)se>, Andres Freund <andres(at)anarazel(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Subject: Re: RFC: adding pytest as a supported test framework
Date: 2025-09-22 20:30:04
Message-ID: CAOYmi+=CrBFBRX-foRRES2tx2wXBJJhbsJGjgFbWvPcmBJuK-Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 18, 2025 at 11:22 AM Jacob Champion
<jacob(dot)champion(at)enterprisedb(dot)com> wrote:
> Turns out we've already solved this exact problem for Perl and Prove
> [1], and I should probably choose a similar solution for Python and
> pytest. In other words: make the requirements check into a test.

Done this way in v2-0002. pytest and the linked `PYTHON` can now be
independent of each other. This adds some scaffolding complexity, to
get the configure script and pytest to talk to each other nicely, but
I've gotten rid of some architectural complexity in check_pytest.py to
make up for it.

Thanks,
--Jacob

Attachment Content-Type Size
v2-0001-meson-Include-TAP-tests-in-the-configuration-summ.patch application/octet-stream 1.0 KB
v2-0002-Add-support-for-pytest-test-suites.patch application/octet-stream 35.9 KB
v2-0003-WIP-pytest-Add-some-SSL-client-tests.patch application/octet-stream 35.2 KB
v2-0004-WIP-pytest-Add-some-server-side-SSL-tests.patch application/octet-stream 29.3 KB
v2-0005-ci-Add-MTEST_SUITES-for-optional-test-tailoring.patch application/octet-stream 3.1 KB
v2-0006-XXX-run-pytest-and-ssl-suite-all-OSes.patch application/octet-stream 1.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2025-09-22 20:45:12 Re: Fix overflow of nbatch
Previous Message Alexander Lakhin 2025-09-22 20:30:00 Re: GNU/Hurd portability patches