TUnit icon indicating copy to clipboard operation
TUnit copied to clipboard

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

Open AfricanCh opened this issue 10 months ago • 5 comments

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?

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

AfricanCh avatar Jan 28 '26 03:01 AfricanCh

Can you try on v1.12.82 please

thomhurst avatar Jan 29 '26 15:01 thomhurst

@thomhurst Still unable to run on v1.12.82: repo

AfricanCh avatar Jan 30 '26 07:01 AfricanCh

@thomhurst v1.12.93 doesn't work either

AfricanCh avatar Jan 30 '26 07:01 AfricanCh

Can you try on v1.12.111 please

thomhurst avatar Jan 31 '26 18:01 thomhurst

It works now, bless you

AfricanCh avatar Feb 02 '26 06:02 AfricanCh