2 instantiations of FeatureFlag
Microsoft.TestPlatform.CoreUtilities (2)
FeatureFlag\FeatureFlag.cs (2)
35
public static IFeatureFlag Instance { get; private set; } = new
FeatureFlag
();
126
Instance = 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)
64
FeatureFlag
.Instance)
227
if (_featureFlag.IsSet(
FeatureFlag
.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING))
298
if (_featureFlag.IsSet(
FeatureFlag
.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING))
467
if (_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.");
496
throw 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.");
580
if (_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.");
856
throw 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.");
864
throw 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)
293
if (!
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_DOTNET_ROOT_ON_NONWINDOWS))
593
if (
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)
20
return _featureFlag.IsSet(
FeatureFlag
.VSTEST_DISABLE_SERIALTESTRUN_DECORATOR)
ExtensionFramework\Utilities\LazyExtension.cs (1)
23
private readonly ExtensionDecoratorFactory _extensionDecoratorFactory = new(
FeatureFlag
.Instance);
Microsoft.VisualStudio.TestPlatform.ObjectModel (16)
RunSettings\RunConfiguration.cs (6)
96
CaptureStandardOutput = !
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_STANDARD_OUTPUT_CAPTURING);
97
ForwardStandardOutput = !
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_STANDARD_OUTPUT_FORWARDING);
98
DisableSharedTestHost =
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.
57
public 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
221
internal static void ResetFeatureFlagCacheForTesting() =>
FeatureFlag
.Reset();
TestProperty\TestProperty.cs (2)
22
private static bool DisableFastJson { get; set; } =
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_FASTER_JSON_SERIALIZATION);
vstest.console (15)
CommandLine\Executor.cs (2)
81
if (!
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_THREADPOOL_SIZE_INCREASE))
Internal\ConsoleLogger.cs (3)
151
private readonly IFeatureFlag _featureFlag =
FeatureFlag
.Instance;
694
if (_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)
83
if (!(featureFlag ??
FeatureFlag
.Instance).IsSet(
FeatureFlag
.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING))
Program.cs (2)
27
if (!
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_UTF8_CONSOLE_ENCODING))
TestPlatformHelpers\TestRequestManager.cs (4)
609
var disableMultiTfm =
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_MULTI_TFM_RUN);
719
if (!
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_DYNAMICNATIVE_CODECOVERAGE_DEFAULT_SETTING))
vstest.console.arm64 (15)
parent\vstest.console\CommandLine\Executor.cs (2)
81
if (!
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_THREADPOOL_SIZE_INCREASE))
parent\vstest.console\Internal\ConsoleLogger.cs (3)
151
private readonly IFeatureFlag _featureFlag =
FeatureFlag
.Instance;
694
if (_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)
83
if (!(featureFlag ??
FeatureFlag
.Instance).IsSet(
FeatureFlag
.VSTEST_DISABLE_ARTIFACTS_POSTPROCESSING))
parent\vstest.console\Program.cs (2)
27
if (!
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_UTF8_CONSOLE_ENCODING))
parent\vstest.console\TestPlatformHelpers\TestRequestManager.cs (4)
609
var disableMultiTfm =
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_MULTI_TFM_RUN);
719
if (!
FeatureFlag
.Instance.IsSet(
FeatureFlag
.VSTEST_DISABLE_DYNAMICNATIVE_CODECOVERAGE_DEFAULT_SETTING))