Skip to content

[Feature]: Remove dependency on UnitTestFrameworkPkg's IncludePrivate path. #529

Open

Description

@apop5

Feature Overview

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.

Alternatives Considered

No response

Urgency

Low

Are you going to implement the feature request?

I will implement the feature

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Activity

  1. added
    state:backlog
    type:feature-request
    on Jul 23, 2024
  2. trhpx commented on Sep 25, 2025

    @trhpx

    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:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:backlogtype:feature-requesturgency:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions