2 instantiations of FeatureFlag
Microsoft.TestPlatform.CoreUtilities (2)
FeatureFlag\FeatureFlag.cs (2)
35public static IFeatureFlag Instance { get; private set; } = new FeatureFlag(); 126Instance = new FeatureFlag();
80 references to FeatureFlag
Microsoft.TestPlatform.CrossPlatEngine (26)
Adapter\TestExecutionRecorder.cs (2)
60: this(testCaseEventsHandler, testRunCache, FeatureFlag.Instance) 69_disableMultipleTestCaseEvents = featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_MULTIPLE_TESTCASE_EVENTS);
PostProcessing\ArtifactProcessingManager.cs (24)
64FeatureFlag.Instance) 227if (_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING)) 298if (_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING)) 467if (_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION)) 493$"'{path}' is not a directory. A symbolic link is not accepted, because the artifacts would be written somewhere other than the directory that was checked. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 496throw new ArtifactDirectoryVerificationException($"Could not open '{path}', errno: {openErrno}. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 510$"'{path}' is owned by uid {status.Value.OwnerId} rather than by uid {effectiveUserId}. The test session artifacts are not written into a directory left behind by another user. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 520$"Could not read the owner of '{path}' (statx unavailable), and refusing to modify it while running as root. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 530$"Could not restrict '{path}' to the current user, errno: {chmodErrno}. The test session artifacts are not written when the directory holding them cannot be protected. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this."); 580if (_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION)) 600$"{description} is not a directory. A symbolic link is not accepted, because the artifacts would be written somewhere other than the directory that was checked. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 607$"{description} is owned by uid {ownerId} rather than by uid {effectiveUserId}. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 615$"{description} can be accessed by users other than its owner, it should allow the owner only. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 653$"{description} cannot be verified, '/' is owned by uid {rootOwnerId}. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 689$"{description} cannot be verified, because users other than its owner can replace '{entry}': '{parentPath}' can be written by its group or by everybody{((parentMode & sticky) == 0 ? " and is not sticky" : $", and '{entry}' is owned by uid {ownerId}")}. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 703$"{description} cannot be verified, resolving it follows more than {maxSymbolicLinks} symbolic links. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 719$"{description} cannot be verified, because '{entry}' on the way to it is owned by uid {ownerId}, who can replace what it contains. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 727$"{description} cannot be verified, '{entry}' on the way to it is not a directory. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 755$"{description} cannot be verified, could not read the symbolic link '{path}', errno: {Marshal.GetLastWin32Error()}. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 761$"{description} cannot be verified, the target of the symbolic link '{path}' is too long. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 773$"{description} cannot be verified, the target of the symbolic link '{path}' is not valid UTF-8. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 799$"{description} cannot be verified, because statx is not available on this system. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 856throw new ArtifactDirectoryVerificationException($"Could not read the owner and the permissions of {description}, errno: {errno}. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check."); 864throw new ArtifactDirectoryVerificationException($"The status of {description} does not report the owner and the mode, so it cannot be verified. Set {FeatureFlag.VSTEST_DISABLE_ARTIFACTS_DIRECTORY_VERIFICATION}=1 to skip this check.");
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Hosting\DotnetTestHostManager.cs (4)
293if (!FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_DOTNET_ROOT_ON_NONWINDOWS)) 593if (FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_DOTNET_ROOT_ON_NONWINDOWS))
Microsoft.VisualStudio.TestPlatform.Client (2)
DesignMode\DesignModeClient.cs (2)
80_forwardOutput = !FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_STANDARD_OUTPUT_FORWARDING);
Microsoft.VisualStudio.TestPlatform.Common (2)
ExtensionDecorators\ExtensionDecoratorFactory.cs (1)
20return _featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_SERIALTESTRUN_DECORATOR)
ExtensionFramework\Utilities\LazyExtension.cs (1)
23private readonly ExtensionDecoratorFactory _extensionDecoratorFactory = new(FeatureFlag.Instance);
Microsoft.VisualStudio.TestPlatform.ObjectModel (16)
RunSettings\RunConfiguration.cs (6)
96CaptureStandardOutput = !FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_STANDARD_OUTPUT_CAPTURING); 97ForwardStandardOutput = !FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_STANDARD_OUTPUT_FORWARDING); 98DisableSharedTestHost = FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_SHARING_NETFRAMEWORK_TESTHOST);
src\vstest\src\Microsoft.TestPlatform.Hashing.Source\TestCaseIdAlgorithm.cs (6)
30/// <see cref="FeatureFlag.VSTEST_DISABLE_XXHASH128_TESTCASE_ID"/> feature flag. 57public const string FeatureFlagName = FeatureFlag.VSTEST_DISABLE_XXHASH128_TESTCASE_ID; 63/// <see cref="FeatureFlag"/> treats every other value as setting the flag, so there is no 73/// <see cref="FeatureFlag"/> reads the environment on first use rather than at type load, and 96=> FeatureFlag.Instance.IsSet(FeatureFlagName) 104/// Applies the rule <see cref="FeatureFlag"/> applies to a value it finds in the environment: the
TestCase.cs (2)
212/// the whole <see cref="FeatureFlag"/> cache, because that is the granularity available. Flags 221internal static void ResetFeatureFlagCacheForTesting() => FeatureFlag.Reset();
TestProperty\TestProperty.cs (2)
22private static bool DisableFastJson { get; set; } = FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_FASTER_JSON_SERIALIZATION);
vstest.console (15)
CommandLine\Executor.cs (2)
81if (!FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_THREADPOOL_SIZE_INCREASE))
Internal\ConsoleLogger.cs (3)
151private readonly IFeatureFlag _featureFlag = FeatureFlag.Instance; 694if (_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING) || 696_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING_NEW_SDK_UX) ||
Processors\ArtifactProcessingPostProcessModeProcessor.cs (2)
54=> !(featureFlag ?? FeatureFlag.Instance).IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING) &&
Processors\Utilities\ArgumentProcessorFactory.cs (2)
83if (!(featureFlag ?? FeatureFlag.Instance).IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING))
Program.cs (2)
27if (!FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_UTF8_CONSOLE_ENCODING))
TestPlatformHelpers\TestRequestManager.cs (4)
609var disableMultiTfm = FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_MULTI_TFM_RUN); 719if (!FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_DYNAMICNATIVE_CODECOVERAGE_DEFAULT_SETTING))
vstest.console.arm64 (15)
parent\vstest.console\CommandLine\Executor.cs (2)
81if (!FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_THREADPOOL_SIZE_INCREASE))
parent\vstest.console\Internal\ConsoleLogger.cs (3)
151private readonly IFeatureFlag _featureFlag = FeatureFlag.Instance; 694if (_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING) || 696_featureFlag.IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING_NEW_SDK_UX) ||
parent\vstest.console\Processors\ArtifactProcessingPostProcessModeProcessor.cs (2)
54=> !(featureFlag ?? FeatureFlag.Instance).IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING) &&
parent\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (2)
83if (!(featureFlag ?? FeatureFlag.Instance).IsSet(FeatureFlag.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING))
parent\vstest.console\Program.cs (2)
27if (!FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_UTF8_CONSOLE_ENCODING))
parent\vstest.console\TestPlatformHelpers\TestRequestManager.cs (4)
609var disableMultiTfm = FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_MULTI_TFM_RUN); 719if (!FeatureFlag.Instance.IsSet(FeatureFlag.VSTEST_DISABLE_DYNAMICNATIVE_CODECOVERAGE_DEFAULT_SETTING))