You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Remove dependency on UnitTestFrameworkPkg's IncludePrivate path. #529
DxeMemoryProtectionApp and XmlSupportPkg\Library\UnitTestResultReportJUnitFormatLib\UnitTestResultReportLib.inf are both making use of internal header files from the UnitTestFrameworkPkg.
DxeMemoryProtectionApp is consuming UnitTestFrameworkTypes.h.
UnitTestResultReportLib.inf (XmlSupportPkg\Library\UnitTestResultReportJUnitFormatLib) is using UnitTestResultReportLib.h
These need to be examined and possibly removed.
Solution Overview
Enable tests to run without the need to use internals of the UnitTestFrameworkPkg.
If the goal is to support custom report libraries outside the UnitTestFrameworkPkg, then I think new APIs are required in the UnitTestLib. The UnitTestLib today supports creating and registering and running unit tests and provides macros/functions to implement unit tests. It does not provide services to collect the results from unit tests after they have been run. The one implementation of UnitTestResultReportLib in the UnitTestFrameworkPkg has to know the internal structures to collect results.
Can you propose to API additions to the UnitTestLib that would allow all the registered unit tests to be traversed and collect the test results? I think that would be a great improvement that would allow many different unit test results report generators.
I'm not sure how Microsoft mu_plus had planned to resolve this, but I wanted to make sure that the ideas are connected between edk2 and the Microsoft repositories.
Activity
trhpx commentedon Sep 25, 2025
There is a related conversation in an edk2 PR (filed by myself)
tianocore/edk2#11478
Copying the latest comment (from Michael Kinney (@mdkinney)) on the PR here:
I'm not sure how Microsoft mu_plus had planned to resolve this, but I wanted to make sure that the ideas are connected between edk2 and the Microsoft repositories.