Project

General

Profile

Actions

action #165396

closed

coordination #127031: [saga][epic] openQA for SUSE customers

coordination #165393: [epic] Improved code coverage in openQA

Improved code coverage in openQA for unit tests in t/ size:S

Added by okurz 3 months ago. Updated 3 months ago.

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

0%

Estimated time:

Description

Motivation

To be able to safely improve and extend openQA, we need to have reliable and stable unit tests with even better code coverage, at least 100% statement coverage. Continue with the path t/

Acceptance criteria

  • AC1: codecov.yml ensures 100% statement coverage (with explicit Devel::Cover exceptions allowed) for the path t/ in openQA

Suggestions

  • Identify areas showing less than 100.00% on https://app.codecov.io/gh/os-autoinst/openQA/tree/master/t and
    • Remove dead code
    • Add according test coverage
    • Add explicit exception statements on unreachable code
  • Adjust the threshold in codecov.yml for t/ to keep 100%
  • For really uncoverable lines add # uncoverable statement

Related issues 2 (0 open2 closed)

Copied from openQA Project - action #130420: Improved code coverage in os-autoinst - testapi size:SResolvedmkittler2023-06-06

Actions
Copied to openQA Project - action #167914: Improved code coverage in openQA in lib/OpenQA/WorkerResolvedmkittler2024-10-08

Actions
Actions

Also available in: Atom PDF