Re: RFC: adding pytest as a supported test framework

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: RFC: adding pytest as a supported test framework
Дата
Msg-id 20240614161725.x4x7btzvp37vn2h4@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: RFC: adding pytest as a supported test framework  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 2024-06-14 09:11:11 -0700, Andres Freund wrote:
> On 2024-06-14 11:49:29 -0400, Tom Lane wrote:
> > Am I right in guessing that pytest will have nothing to do with that?
> 
> Looks like there's a plugin for pytest to support tap as output:
> https://pypi.org/project/pytest-tap/
> 
> However, it's not available as a debian package. I know that some folks just
> advocate installing dependencies via venv, but I personally don't think
> that'll fly. For one, it'll basically prevent tests being run by packagers.

If this were the blocker, I think we could just ship an output adapter
ourselves. pytest-tap is not a lot of code:
https://github.com/python-tap/pytest-tap/blob/main/src/pytest_tap/plugin.py

So either vendoring it or just writing an even simpler version ourselves seems
entirely feasible.



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: RFC: adding pytest as a supported test framework
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: jsonpath: Missing regex_like && starts with Errors?