Skip to content

chore/increase offline tests coverage #33

Open
alanpeixinho wants to merge 2 commits into
kernelci:mainfrom
alanpeixinho:chore/offline-tests
Open

chore/increase offline tests coverage #33
alanpeixinho wants to merge 2 commits into
kernelci:mainfrom
alanpeixinho:chore/offline-tests

Conversation

@alanpeixinho

@alanpeixinho alanpeixinho commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Increase coverage test on offline testing.
testing_offline has gone from 61% to 69% total coverage.

We are now including:

  • mail/web exporting check.
  • deletion check.
Name Stmts Miss Cover
----------------------------------------------------------------   
regzbot/__init__.py 2022 461 77%
regzbot/_rbcmd.py 366 44 88%
regzbot/_repsources/_bugzilla.py 332 276 17%
regzbot/_repsources/_generic.py 23 0 100%
regzbot/_repsources/_github.py 303 244 19%
regzbot/_repsources/_gitlab.py 309 251 19%
regzbot/_repsources/_lore.py 409 132 68%
regzbot/_repsources/_trackers.py 77 55 29%
regzbot/commandl.py 86 11 87%
regzbot/export_csv.py 93 2 98%
regzbot/export_mail.py 345 42 88%
regzbot/export_web.py 720 40 94%
----------------------------------------------------------------   
TOTAL 5085 1558 69%

The _repsources/*.py files should be more effectively covered by testing_trackers.py.

How to run

Execute tests

PYTHONPATH=. coverage run regzbot/commandl.py test --offline

Compile report

coverage report

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@alanpeixinho alanpeixinho changed the title chore/offline tests [WIP] chore/offline tests Jun 26, 2026
@alanpeixinho alanpeixinho force-pushed the chore/offline-tests branch 2 times, most recently from 6a81279 to 86af228 Compare June 29, 2026 21:48
  * Include Mail/Web exporters diff
  * Remove some dead code
  * Small refactors to reduce coverage report noise

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@alanpeixinho alanpeixinho force-pushed the chore/offline-tests branch from 86af228 to a7800c5 Compare June 30, 2026 21:38
@alanpeixinho alanpeixinho marked this pull request as ready for review July 1, 2026 18:28
@alanpeixinho alanpeixinho changed the title [WIP] chore/offline tests chore/increase offline tests coverage Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant