Actions
action #102524
openLet openQA tests automatically spawn a test DB process if not already running
Start date:
2021-11-16
Due date:
% Done:
0%
Estimated time:
Description
Motivation¶
openQA tests like prove -l t/basic.t
already include a line OpenQA::Test::Database->new->create;
but this still needs a database process to be present. This is detected and flagged as an error accordingly but we could make the tests themselves more convenient and less reliant on the Makefile by spawning a postgresql process itself within tests if not already running.
Acceptance criteria¶
- AC1: All tests needing a database can be successfully executed using just prove and without needing to start postgresql upfront
- AC2: Tests can still be executed from the Makefile
- AC3: An already running test postgresql instance is still reused if already existing
Actions