Project

General

Profile

Actions

action #109620

closed

coordination #109668: [saga][epic] Stable and updated non-qemu backends for SLE validation

coordination #109656: [epic] Stable non-qemu backends

os-autoinst: Improve unit-test code coverage for backend::svirt size:M

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

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

os-autoinst: Improve unit-test code coverage for backend::svirt

Motivation

https://app.codecov.io/gh/os-autoinst/os-autoinst/blob/master/backend/svirt.pm shows that we have at time of writing just 43% statement coverage and multiple methods are not fully covered. Before we go about extending features or fixing bugs we should ensure with better test coverage that we are less likely to introduce regressions and ease development (e.g. for #106685).

Acceptance criteria

Suggestions

  • Look into t/22-svirt.t, call it locally to get coverage, e.g. make coverage TESTS=t/22-svirt.t, maybe some other tests on top
  • Look into the interesting challenge why the above command does not seem to provide any coverage for the file backend/svirt.pm at all (at least for okurz)
  • Optionally add a new unit-test level test file, e.g. based on t/29-backend-amt.t
  • Add test (with mocking) for existing code in backend/svirt.pm until a sufficiently high statement coverage is reached

Related issues 4 (2 open2 closed)

Related to openQA Infrastructure (public) - action #108266: grenache: script_run() commands randomly time out since server room moveNew2022-03-14

Actions
Related to openQA Project (public) - coordination #109740: [epic] Stable os-autoinst unit tests with good coverageResolvedokurz2021-06-30

Actions
Blocks openQA Project (public) - action #111254: Cover code of os-autoinst path backend/ fully (statement coverage) size:MResolvedmkittler2022-05-18

Actions
Copied from openQA Project (public) - action #106685: Test using svirt backend incomplete with auto_review:"Error connecting to VNC server.*: IO::Socket::INET: connect: Connection timed out":retryNew

Actions
Actions

Also available in: Atom PDF