Skip to content

Commit

Permalink
#426: Can't filter by traits on ITheoryDataRow
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Dec 5, 2024
1 parent 9154f3f commit d94ab88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xunit.runner.visualstudio/VsTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ async Task DiscoverTests<TVisitor>(
ConfigReader.Load(assembly.Configuration, assembly.AssemblyFileName, assembly.ConfigFileName, configWarnings);
runSettings.CopyTo(assembly.Configuration);

// IDE users get pre-enumeated theories by default
if (testPlatformContext.DesignMode)
assembly.Configuration.PreEnumerateTheories ??= true;
// 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
assembly.Configuration.PreEnumerateTheories ??= true;

foreach (var warning in configWarnings)
logger.LogWarning("{0}", warning);
Expand Down

0 comments on commit d94ab88

Please sign in to comment.