-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BaseTools: reformat HostBasedUnitTestRunner coverage results by inf #616
Merged
Javagedes
merged 18 commits into
microsoft:release/202302
from
Javagedes:unittestrunner-update
Nov 14, 2023
Merged
BaseTools: reformat HostBasedUnitTestRunner coverage results by inf #616
Javagedes
merged 18 commits into
microsoft:release/202302
from
Javagedes:unittestrunner-update
Nov 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
language:python
Pull requests that update Python code
impact:breaking-change
Requires integration attention
impact:non-functional
Does not have a functional impact
labels
Nov 7, 2023
Javagedes
force-pushed
the
unittestrunner-update
branch
from
November 7, 2023 22:56
53d5b20
to
bc5f740
Compare
apop5
approved these changes
Nov 8, 2023
Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is fomratted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformat reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the platform name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate.
Javagedes
force-pushed
the
unittestrunner-update
branch
from
November 8, 2023 16:43
95df55b
to
b50c490
Compare
Javagedes
force-pushed
the
unittestrunner-update
branch
5 times, most recently
from
November 8, 2023 21:33
714af1e
to
ce5b9f4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/202302 #616 +/- ##
=================================================
Coverage ? 24.85%
=================================================
Files ? 128
Lines ? 21559
Branches ? 5756
=================================================
Hits ? 5359
Misses ? 16150
Partials ? 50
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Javagedes
force-pushed
the
unittestrunner-update
branch
10 times, most recently
from
November 9, 2023 17:20
505d546
to
e2808b0
Compare
cfernald
approved these changes
Nov 14, 2023
makubacki
approved these changes
Nov 14, 2023
ProjectMuBot
referenced
this pull request
in microsoft/mu_tiano_platforms
Nov 16, 2023
Introduces 4 new commits in [MU_BASECORE](https://github.com/microsoft/mu_basecore.git). <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/microsoft/mu_basecore/commit/3b01cdb7e02ce96f223f6ae9c622a167b283bdef">3b01cd</a> Repo File Sync: Update to Mu DevOps 7.2.0 (<a href="https://github.com/microsoft/mu_basecore/pull/618">#618</a>)</li> <li><a href="https://github.com/microsoft/mu_basecore/commit/a4a93530ef09e35282751e24783572947d6cc653">a4a935</a> Add Gmock for UefiBootServicesTableLib (<a href="https://github.com/microsoft/mu_basecore/pull/623">#623</a>)</li> <li><a href="https://github.com/microsoft/mu_basecore/commit/991a64e948eee611aa33f6e43d96b97026d03fc7">991a64</a> BaseTools: reformat HostBasedUnitTestRunner coverage results by inf (<a href="https://github.com/microsoft/mu_basecore/pull/616">#616</a>)</li> <li><a href="https://github.com/microsoft/mu_basecore/commit/a0e861f206373409e3f154b0e2c7ac2ac168388e">a0e861</a> Define GUID for boot manage policy to connecxt storage devices. (<a href="https://github.com/microsoft/mu_basecore/pull/619">#619</a>)</li> </ul> </details> Signed-off-by: Project Mu Bot <[email protected]>
kenlautner
pushed a commit
that referenced
this pull request
Dec 14, 2023
…616) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. - [ ] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [x] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... N/A Any repository consuming MU_BASECORE for this commit and later must use edk2-pytool-extensions >= 0.26.2.
kenlautner
pushed a commit
that referenced
this pull request
Dec 14, 2023
…616) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. - [ ] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [x] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... N/A Any repository consuming MU_BASECORE for this commit and later must use edk2-pytool-extensions >= 0.26.2.
kenlautner
pushed a commit
that referenced
this pull request
Dec 16, 2023
…616) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. - [ ] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [x] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... N/A Any repository consuming MU_BASECORE for this commit and later must use edk2-pytool-extensions >= 0.26.2.
kenlautner
pushed a commit
that referenced
this pull request
Dec 18, 2023
…616) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. - [ ] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [x] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... N/A Any repository consuming MU_BASECORE for this commit and later must use edk2-pytool-extensions >= 0.26.2.
cfernald
pushed a commit
to cfernald/mu_basecore
that referenced
this pull request
Jul 1, 2024
…icrosoft#616) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. - [ ] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [x] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... N/A Any repository consuming MU_BASECORE for this commit and later must use edk2-pytool-extensions >= 0.26.2.
cfernald
pushed a commit
to cfernald/mu_basecore
that referenced
this pull request
Jul 1, 2024
…icrosoft#616) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. cherry-picked from 991a64e, pulled from 43ae607 in 202311 - [ ] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [x] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... N/A Any repository consuming MU_BASECORE for this commit and later must use edk2-pytool-extensions >= 0.26.2.
cfernald
pushed a commit
to cfernald/mu_basecore
that referenced
this pull request
Jul 3, 2024
…icrosoft#616) (microsoft#688) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. Integrates edk2-pytool-extensions 0.27.0 and edk2-pytool-library 0.20.0, which overhauls the database functionality to use an ORM for managing the database schema and access to the database. Updates the only plugin in MU_BASECORE that uses the database functionality, HostBasedUnitTestRunner. cherry-picked from 991a64e, pulled from 43ae607 in 202311 cherry-picked from 785fe3d - [ ] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [ ] Includes tests? - [ ] Includes documentation?.
cfernald
pushed a commit
to cfernald/mu_basecore
that referenced
this pull request
Jul 5, 2024
…icrosoft#616) (microsoft#688) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. Integrates edk2-pytool-extensions 0.27.0 and edk2-pytool-library 0.20.0, which overhauls the database functionality to use an ORM for managing the database schema and access to the database. Updates the only plugin in MU_BASECORE that uses the database functionality, HostBasedUnitTestRunner. cherry-picked from 991a64e, pulled from 43ae607 in 202311 cherry-picked from 785fe3d - [ ] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [ ] Includes tests? - [ ] Includes documentation?.
cfernald
pushed a commit
that referenced
this pull request
Jul 5, 2024
…616) (#688) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. Integrates edk2-pytool-extensions 0.27.0 and edk2-pytool-library 0.20.0, which overhauls the database functionality to use an ORM for managing the database schema and access to the database. Updates the only plugin in MU_BASECORE that uses the database functionality, HostBasedUnitTestRunner. cherry-picked from 991a64e, pulled from 43ae607 in 202311 cherry-picked from 785fe3d - [ ] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [ ] Includes tests? - [ ] Includes documentation?.
os-d
pushed a commit
to os-d/mu_basecore
that referenced
this pull request
Jul 16, 2024
…icrosoft#616) (microsoft#688) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. Integrates edk2-pytool-extensions 0.27.0 and edk2-pytool-library 0.20.0, which overhauls the database functionality to use an ORM for managing the database schema and access to the database. Updates the only plugin in MU_BASECORE that uses the database functionality, HostBasedUnitTestRunner. cherry-picked from 991a64e, pulled from 43ae607 in 202311 cherry-picked from 785fe3d - [ ] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [ ] Includes tests? - [ ] Includes documentation?.
apop5
pushed a commit
to apop5/mu_basecore
that referenced
this pull request
Jan 2, 2025
…icrosoft#616) (microsoft#688) Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative. An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically `$(ws)/Build/`) An additional change is made to how the `input_coverage` parameter is provided to `OpenCppCoverage` for msvc builds. `input_coverage` is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted. Integrates edk2-pytool-extensions 0.27.0 and edk2-pytool-library 0.20.0, which overhauls the database functionality to use an ORM for managing the database schema and access to the database. Updates the only plugin in MU_BASECORE that uses the database functionality, HostBasedUnitTestRunner. cherry-picked from 991a64e, pulled from 43ae607 in 202311 cherry-picked from 785fe3d - [ ] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [ ] Includes tests? - [ ] Includes documentation?. BaseTools/Plugin/HostBasedUnitTestRunner: Fix invalid escape in HostBasedUnitTest.py (microsoft#899) Fix invalid escape sequence in BaseTools/Plugin/HostBasedUnitTestRunner/HostBasedUnitTestRunner.py. These warnings are exposed by Python 3.12. For each item, place an "x" in between `[` and `]` if true. Example: `[x]`. _(you can also check items in the GitHub UI)_ - [ ] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [ ] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... Validated no functional changes to HostBasedUnitTestRunner. N/A Add CC_EXCLUDE support to exclude filetypes from reorganized reports. Defaults to exclude Null. Updated documentation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
impact:breaking-change
Requires integration attention
impact:non-functional
Does not have a functional impact
language:python
Pull requests that update Python code
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Coverage results that are generated from HostBasedUnitTestRunner are inconsistent in terms of how the cobertura file is formatted. On Windows, cobertura results are grouped by test executable while on Linux, cobertura results are grouped by INF. This commit reformats coverage results to always be by INF and to additionally be package-path relative.
An additional change this commit makes is to rename the package coverage file to include the package name. This is to make easily identify which coverage results come from which host test DSC and additionally prevent name conflicts when coverage results are uploaded during a PR gate. Overall coverage is still generated and at the root of the output directory (typically
$(ws)/Build/
)An additional change is made to how the
input_coverage
parameter is provided toOpenCppCoverage
for msvc builds.input_coverage
is now provided via a config file due to the command line argument limit being reached as the number of tests being run increases. The config file is written, the command is run, then the file is deleted.flow, or firmware?
validation improvement, ...
in build or boot behavior?
a function in a new library class in a pre-existing module, ...
outside direct code modifications (and comments)?
on an a separate Web page, ...
How This Was Tested
N/A
Integration Instructions
Any repository consuming MU_BASECORE for this commit and later must use edk2-pytool-extensions >= 0.26.0.