Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: skip discovery notification for NotDiscoverable tests
  • Loading branch information
thomhurst committed Dec 23, 2025
commit 27fe3f44439d675de80ec371cdfc8bd8f21758b4
5 changes: 5 additions & 0 deletions TUnit.Engine/TUnitMessageBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ internal class TUnitMessageBus(IExtension extension, ICommandLineOptions command

public async ValueTask Discovered(TestContext testContext)
{
if (testContext.IsNotDiscoverable)
{
return;
}

await context.MessageBus.PublishAsync(this, new TestNodeUpdateMessage(
sessionUid: _sessionSessionUid,
testNode: testContext.ToTestNode(DiscoveredTestNodeStateProperty.CachedInstance)
Expand Down