Skip to content

investigate regression test coverage for checks.py #1398

@shahzebsiddiqui

Description

@shahzebsiddiqui

@prathmesh4321

currently we see https://app.codecov.io/github/buildtesters/buildtest/blob/devel/buildtest/buildsystem/checks.py showing a 5% coverage despite the fact we are attempting to test each status check in https://github.com/buildtesters/buildtest/blob/devel/tests/builders/test_builders.py
Screen Shot 2023-02-22 at 2 29 38 PM

According to test coverage it is showing all methods have no coverage so something is going wrong w.r.t to line coverage. We should look into why this is happening since test are running but not impacting test coverage.

Screen Shot 2023-02-22 at 2 30 50 PM

Currently, we are invoking the BuildTest class see

class BuildTest:
"""This class is an interface to building tests via ``buildtest build`` command."""
def __init__(
self,
configuration=None,
buildspecs=None,
exclude_buildspecs=None,
tags=None,
executors=None,
testdir=None,
stage=None,
filter_buildspecs=None,
rebuild=None,
buildtest_system=None,
report_file=None,
maxpendtime=None,
poll_interval=None,
remove_stagedir=None,
retry=None,
account=None,
helpfilter=None,
numprocs=None,
numnodes=None,
modules=None,
modulepurge=None,
unload_modules=None,
rerun=None,
executor_type=None,
timeout=None,
limit=None,
):
to emulate the buildtest build command which should run the test when invoking the build method. Based on output of regression test it is running the checks but line-coverage is not hitting each method

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions