diff --git a/src/xunit.runner.visualstudio/VsTestRunner.cs b/src/xunit.runner.visualstudio/VsTestRunner.cs index 1b6b609..cb0a82d 100644 --- a/src/xunit.runner.visualstudio/VsTestRunner.cs +++ b/src/xunit.runner.visualstudio/VsTestRunner.cs @@ -207,9 +207,9 @@ async Task DiscoverTests( 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);