canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
34 stars 50 forks source link

Add manifest units to expand output (New) #1489

Closed Hook25 closed 1 month ago

Hook25 commented 2 months ago

Description

We need a way to programmatically fetch the list of manifest entries needed to run a test plan. This makes it easier to automatically verify manifests in CI, track changes to testplans manifest entries and more. This adds manifest units to the expand command filtering out those that aren't used in the testplan.

Resolved issues

Fixes: https://warthogs.atlassian.net/browse/CHECKBOX-1555

Documentation

This adds plenty comments to the expander.

Tests

WIP

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.

Project coverage is 45.88%. Comparing base (0881101) to head (570c8c6). Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
checkbox-ng/checkbox_ng/launcher/subcommands.py 88.88% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1489 +/- ## ========================================== + Coverage 45.87% 45.88% +0.01% ========================================== Files 367 367 Lines 39156 39167 +11 Branches 6622 6628 +6 ========================================== + Hits 17961 17970 +9 - Misses 20504 20505 +1 - Partials 691 692 +1 ``` | [Flag](https://app.codecov.io/gh/canonical/checkbox/pull/1489/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | Coverage Δ | | |---|---|---| | [checkbox-ng](https://app.codecov.io/gh/canonical/checkbox/pull/1489/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `68.14% <88.88%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.