Skip to content

Commit 56f71f3

Browse files
committed
Second location where PreEnumerateTheories needs to be turned off for #426
1 parent d94ab88 commit 56f71f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/xunit.runner.visualstudio/VsTestRunner.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,10 @@ async Task RunTestsInAssembly(
489489
if (assemblyFileName is null)
490490
return;
491491

492+
// Pre-enumerate theories by default, so that we can see all traits, including those that come from
493+
// ITheoryDataRow in v3. See: https://github.com/xunit/visualstudio.xunit/issues/426
494+
runInfo.Assembly.Configuration.PreEnumerateTheories ??= true;
495+
492496
var configuration = runInfo.Assembly.Configuration;
493497

494498
using var _ = AssemblyHelper.SubscribeResolveForAssembly(assemblyFileName, new DiagnosticMessageSink(logger, showDiagnostics: configuration.DiagnosticMessagesOrDefault, showInternalDiagnostics: configuration.DiagnosticMessagesOrDefault));

0 commit comments

Comments
 (0)