Skip to content

Commit

Permalink
Second location where PreEnumerateTheories needs to be turned off for #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Dec 5, 2024
1 parent d94ab88 commit 56f71f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xunit.runner.visualstudio/VsTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@ async Task RunTestsInAssembly(
if (assemblyFileName is null)
return;

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

var configuration = runInfo.Assembly.Configuration;

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

0 comments on commit 56f71f3

Please sign in to comment.