Project

General

Profile

Actions

action #102524

open

Let openQA tests automatically spawn a test DB process if not already running

Added by okurz over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
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

Related issues 1 (1 open0 closed)

Related to openQA Project - action #102521: Document how the KEEP_DB openQA development flag can be put as default into user sessionsNew2021-11-16

Actions
Actions #1

Updated by okurz over 2 years ago

  • Related to action #102521: Document how the KEEP_DB openQA development flag can be put as default into user sessions added
Actions #2

Updated by okurz over 2 years ago

Actions

Also available in: Atom PDF