Skip to content

[Bug]: The method marked with [Before (TestSession)] still does not run #4583

@AfricanCh

Description

@AfricanCh

Description

I am very sorry to bring up this issue again, but after the issue reported in #4541 was closed, I tried to use the latest version 1.12.65, but the method marked with [Before (TestSession)] in the standalone project still did not run

Expected Behavior

The method marked as [Before (TestSession)] should be run before the test session

Actual Behavior

The method marked as [Before (TestSession)] never runs

Steps to Reproduce

I have reopened the repository for reproducing the issue, which quickly provides a simple but complete example. After the issue is closed, I will also close it: repo

TUnit Version

1.12.65

.NET Version

.Net 10.0

Operating System

Windows

IDE / Test Runner

dotnet CLI (dotnet test / dotnet run)

Error Output / Stack Trace

Additional Context

none of them

IDE-Specific Issue?

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

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