Skip to content

Microsoft.TemplateEngine.Authoring.TemplateVerifier package blocks upgrading past XUnit 2.x #8961

Open
@baronfel

Description

@baronfel

Product

dotnet CLI (dotnet new)

Describe The Bug

The template verifier helper package enforces a requirement of Xunit v2, however this stack is outdated - xunit v3 is released, and the Microsoft Testing Platform support is a thing that teams want to on board to. Our pinning to older xunit blocks that transition.

The cause of this is the 'UsesVerify' attribute creation + injection that we do here in the Verification engine.

We need to break this dependency - we should be able to express this verification as a normal extension method that works on top of the agnostic Verify core without any test-framework-specific dependencies required.

To Reproduce

Try to add the template verifier package to a project that uses xunit v3.

dotnet Info

Unnecessary

Visual Studio Version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authoringEnhancements to the process of authoring, maintaining, and testing templatesbugThe issue describes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions