I used OverrideResult to dynamically skip tests based on certain conditions.
The test was skipped as expected, but the reason was not reflected and just shows "Skipped".
Environment:
- .NET 10.0.100
- TUnit 1.5.6
Code:
[Test]
public async Task TestSkip()
{
TestContext.Current!.Execution.OverrideResult(TestState.Skipped, "test-skip foo bar baz.");
}
Console:
Visual Studio 2026 Test Explorer:
(Sorry for the message of images in Japanese)