Re: RFC: adding pytest as a supported test framework

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RFC: adding pytest as a supported test framework
Date: 2024-06-17 12:19:05
Message-ID: CAJ7c6TNGJYdaCwnEFk58smn-SoRAh8q6jkpiKCfHzKuLNUBrWQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Jacob,

> For the v18 cycle, I would like to try to get pytest [1] in as a
> supported test driver, in addition to the current offerings.
>
> (I'm tempted to end the email there.)

Huge +1 from me and many thanks for working on this.

Two cents from me.

I spent a fair part of my career writing in Perl. Personally I like
the language and often find it more convenient for the tasks I'm
working on than Python.

This being said, there were several projects I was involved in where
we had to choose a scripting language. In all the cases there was a
strong push-back against Perl and Python always seemed to be a common
denominator for everyone. So I ended up with the rule of thumb to use
Perl for projects I'm working on alone and Python otherwise. Although
the objective reality in the entire industry is unknown to me I spoke
to many people whose observations were similar.

We could speculate about the reasons why people seem to prefer Python
(good IDE support*, unique** libraries like Matplotlib / NumPy /
SciPy, ...) but honestly I don't think they are extremely relevant in
this discussion.

I believe supporting Python in our test infrastructure will attract
more contributors and thus would be a good step for the project in the
long run.

* including PyTest integration
** citation needed

--
Best regards,
Aleksander Alekseev

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2024-06-17 12:19:46 Is creating logical replication slots in template databases useful at all?
Previous Message Alexander Korotkov 2024-06-17 12:14:27 Re: POC, WIP: OR-clause support for indexes