Skip to content

[Bug]: Banner says Engine Mode: SourceGenerated when source generation is disabled #7078

Closed

Description

@jerrosenberg

Bug report checklist

  • I've searched existing issues to ensure this isn't a duplicate
  • I've read the documentation and this isn't expected behavior
  • I'm using the latest version of TUnit

Description

Banner says Engine Mode: SourceGenerated when source generation is disabled by EnableTUnitSourceGeneration property or by TUNIT_EXECUTION_MODE env var.

Expected Behavior

The banner shows the reflection engine.

Actual Behavior

The banner says Engine Mode: SourceGenerated, yet the test runs.

Steps to Reproduce

Csproj contains <EnableTUnitSourceGeneration>false</EnableTUnitSourceGeneration> or env var TUNIT_EXECUTION_MODE=reflection.

public class BannerTests
{
    [Test] public void Runs() { }
}

TUnit Version

1.75.0

.NET Version

.NET 10.0

Operating System

Windows

IDE / Test Runner

dotnet CLI (dotnet test / dotnet run)

Error Output / Stack Trace

Additional Context

No response

IDE-Specific Issue?

  • I've confirmed this issue occurs when running via dotnet test or dotnet run, not just in my IDE

Activity

  1. added a commit that references this issue on Oct 17, 2026
    3ae682a
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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions