action #167926
closedcoordination #127031: [saga][epic] openQA for SUSE customers
coordination #130414: [epic] Improved code coverage in os-autoinst
Cover code of os-autoinst path autotest.pm fully (statement coverage) size:S
Description
Acceptance criteria¶
- AC1: the path autotest.pm is listed in codecov.yml under "fully_covered"
Suggestions¶
- Take a look into https://app.codecov.io/gh/os-autoinst/os-autoinst/blob/master/autotest.pm about what is missing
- Add unit test statement coverage for that to bump the target
Files
Updated by okurz 4 months ago
- Copied from action #167923: Cover code of os-autoinst path script/ fully (statement coverage) added
Updated by okurz 4 months ago
- Copied to action #167929: Cover code of os-autoinst path testapi.pm fully (statement coverage) size:M added
Updated by okurz about 2 months ago
- Subject changed from Cover code of os-autoinst path autotest.pm fully (statement coverage) to Cover code of os-autoinst path autotest.pm fully (statement coverage) size:S
- Status changed from New to Workable
Updated by gpathak about 2 months ago
- Status changed from Workable to In Progress
- Assignee set to gpathak
Updated by gpathak about 2 months ago
Created a draft PR: https://github.com/os-autoinst/os-autoinst/pull/2594
Updated by gpathak about 2 months ago
- File coverage.html coverage.html added
Updated by gpathak about 2 months ago
- Status changed from In Progress to Resolved
Pull request merged.
Updated by okurz about 2 months ago
- Status changed from Resolved to In Progress
nope. Just because a PR is merged doesn't mean that the goal is reached. Please check again.
Updated by livdywan about 2 months ago
- Take a look into https://app.codecov.io/gh/os-autoinst/os-autoinst/blob/master/autotest.pm about what is missing
Indeed. There's uncovered bits visible on Codecov.
Updated by gpathak about 2 months ago
gpathak wrote in #note-9:
Attached code coverage generated html file.
It's just, I am unable to understand how to test subrouties calling_exit()
at the end.
@okurz @mkittler Please review the attached code coverage. If it looks okay, I will then mark the Pull request ready for merging.
I couldn't find a way to catch _exit()
in unit tests. I will try to find any existing test implementation.
Updated by gpathak about 2 months ago
- Status changed from In Progress to Feedback
- Assignee changed from gpathak to okurz
Pull request merged: https://github.com/os-autoinst/os-autoinst/pull/2600
Updated by gpathak about 2 months ago
Assigning it back to myself because AC is not yet achieved.
Updated by gpathak about 2 months ago
- Status changed from Feedback to In Progress
- Assignee changed from okurz to gpathak
Updated by gpathak about 1 month ago
Created another PR: https://github.com/os-autoinst/os-autoinst/pull/2601 for autotest.pm
Updated by tinita about 1 month ago
- Status changed from Resolved to Feedback
I added a comment to https://github.com/os-autoinst/os-autoinst/pull/2601#discussion_r1904029149
loadtestdir
doesn't seem to be used anywhere, and the way it is written produces warnings and makes it necessary to use use lib
, where loadtest
is actually supposed to do that itself.
I suggest to remove loadtestdir
or fix it.
Updated by livdywan 29 days ago
tinita wrote in #note-21:
I added a comment to https://github.com/os-autoinst/os-autoinst/pull/2601#discussion_r1904029149
loadtestdir
doesn't seem to be used anywhere, and the way it is written produces warnings and makes it necessary to useuse lib
, whereloadtest
is actually supposed to do that itself.
I suggest to removeloadtestdir
or fix it.
At least one of the search results looks like a proper use of it, which is pop! os using it, see pop-os/os-autoinst-distri-pop.
Updated by tinita 29 days ago
- Copied to action #175099: autotest::loadtestdir() creates a warning in find_script() and does not add necessary library path size:S added