Closed bernhardkaindl closed 10 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
1aae840
) 56.52% compared to head (0783b2f
) 84.90%. Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@psafont Thank you for your review and approval!
While there's quite a bit of code being introduced, it's just in the tests and not on the deployed code.
This, along with the coverage report that ensure the new code is run, makes the PR low-risk
Exactly, fully agreed!
I just pushed the final minor fixes of the GitHub Workflow file .github/workflows/main.yml
!
Could you review the changes? They are:
For the pytest-coverage-comment
steps:
For the Codecov coverage upload steps:
format("python%s", python-version)
not just unittest
.
This PR raises the code coverage from of the bugtool script itself from 50% to 84% by running almost all of
bugtool
from a single test module by testing the bugtool's main() function.This allows for full testing of nearly any other fixes and changes:
Add tests/unit/test_main.py which also uses test functions which were added for earlier tests to test the main function of bugtool to produce the bugtool output archives for all types: zip, tar, and tar.bz2.
The main test checks the output of the bugtool application to ensure that it matches the expected output. It compares the captured output with the expected output and performs various assertions to validate the output.
It extracts the output files from the archive and checks that the xAPI db and the inventory.xml.
Tested output: