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 4 months ago. Updated 4 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 (public) - action #130420: Improved code coverage in os-autoinst - testapi size:SResolvedmkittler2023-06-06

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

Actions
Actions #1

Updated by okurz 4 months ago

  • Copied from action #130420: Improved code coverage in os-autoinst - testapi size:S added
Actions #2

Updated by livdywan 4 months ago

  • Subject changed from Improved code coverage in openQA - t/ to Improved code coverage in openQA for unit tests in t/ size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #3

Updated by mkittler 4 months ago

  • Assignee set to mkittler
Actions #4

Updated by mkittler 4 months ago

  • Status changed from Workable to Feedback
Actions #5

Updated by mkittler 4 months ago

  • Status changed from Feedback to Resolved

The PR has been merged.

Actions #6

Updated by okurz 2 months ago

  • Copied to action #167914: Improved code coverage in openQA in lib/OpenQA/Worker added
Actions

Also available in: Atom PDF