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
Updated by okurz about 3 years ago
- Related to action #102521: Document how the KEEP_DB openQA development flag can be put as default into user sessions added
Updated by okurz about 3 years ago
Created a draft in https://github.com/os-autoinst/openQA/commit/c01d66e9a4f6046d0b974c8eecf8ff4c4a33dbe8 . Feel welcome to comment there.
Actions