Re: Direction for test frameworks: Perl TAP vs. Python/pytest - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Direction for test frameworks: Perl TAP vs. Python/pytest
Date
Msg-id 1400908.1781818698@sss.pgh.pa.us
Whole thread
In response to Re: Direction for test frameworks: Perl TAP vs. Python/pytest  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Direction for test frameworks: Perl TAP vs. Python/pytest
Re: Direction for test frameworks: Perl TAP vs. Python/pytest
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> OK, so the consensus I'm sensing is that we should add a pytest
> framework, backpatch it into all the live branches, and initially port
> some relatively contained set of tests and backpatch that too.
> ...
> This is going to make Python a hard requirement for non-psql based
> testing. There are currently 7 buildfarm animals building master without
> enabling python, although 4 of those are building with meson so
> presumably python is available to them.

Another thing to think about: it's not just "make Python a hard
requirement".  It's "make Python >= some-version a hard requirement".
If we intend to be able to back-patch the test framework, that will
constrain our ability to use bleeding-edge Python features in it.
Compare discussions at [1][2].

            regards, tom lane

[1] https://www.postgresql.org/message-id/flat/CAOYmi%2BnVsoMRFp4u0oQ66-oPT6%2BNNAfhLvk5htthY5zkUOnbfA%40mail.gmail.com
[2] https://www.postgresql.org/message-id/flat/16098.1745079444%40sss.pgh.pa.us



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: PG20 Minimum Dependency Thread
Next
From: Jacob Champion
Date:
Subject: Re: PG20 Minimum Dependency Thread