Re: Binding Postgres to port 0 for testing

Поиск
Список
Период
Сортировка
От Thorsten Glaser
Тема Re: Binding Postgres to port 0 for testing
Дата
Msg-id bf4adb88-a0f5-635e-e778-c97ff8f31a91@evolvis.org
обсуждение исходный текст
Ответ на Binding Postgres to port 0 for testing  (Markus Pilman <markus@pilman.ch>)
Список pgsql-general
Hi Markus,

>I am building a simple integration test framework for an application that I
>am building. For this project I am planning to use PostgreSQL.

check pg_virtualenv(1), which apparently is a Debian thing.
It auto-creates and auto-deletes at the end, if desired, a
cluster and runs your program with suitable environment
variables to access that cluster, which includes choosing
an available port. This was in fact made for integration
testing, though I use it for quickly spinning up throwaway
DBs for one-shot tools as well.

bye,
//mirabilos
--
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

                        ****************************************************
/⁀\ The UTF-8 Ribbon
╲ ╱ Campaign against      Mit dem tarent-Newsletter nichts mehr verpassen:
 ╳  HTML eMail! Also,     https://www.tarent.de/newsletter
╱ ╲ header encryption!
                        ****************************************************



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

Предыдущее
От: Markus Pilman
Дата:
Сообщение: Binding Postgres to port 0 for testing
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: Binding Postgres to port 0 for testing