Skip to content

benchmarks/TUnit.Performance.Tests no longer compiles #7704

Open

Description

@thomhurst

Summary

benchmarks/TUnit.Performance.Tests fails to build on main. It constructs TestMetadata directly and sets members that no longer exist, so the benchmarks can't be run. The project isn't in any solution or workflow, so nothing catches it.

Reproduction

dotnet build benchmarks/TUnit.Performance.Tests/TUnit.Performance.Tests.csproj -c Release

Expected and actual

Expected: the project builds.

Actual: 11 errors in TestDiscoveryBenchmarks.cs (from line 103), for example:

error CS0144: Cannot create an instance of the abstract type or interface 'TestMetadata'
error CS0117: 'TestMetadata' does not contain a definition for 'TestId'
error CS0117: 'TestMetadata' does not contain a definition for 'Categories'
error CS0117: 'TestMetadata' does not contain a definition for 'ParameterCount'

Environment

.NET SDK 11.0.100, macOS arm64. The errors are API mismatches, not SDK-specific.

Should the project be updated to the current TestMetadata API and added to a solution, or removed?

Activity

  1. added
    bugSomething isn't working
    P3Low: cleanup, minor enhancement, or rare edge case
    on Nov 10, 2026
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

    P3Low: cleanup, minor enhancement, or rare edge casebenchmarksbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions