39 references to TestFlags
dotnet-watch (1)
Program.cs (1)
94if (environmentOptions.TestFlags != TestFlags.None)
dotnet-watch.Tests (20)
Browser\BrowserTests.cs (2)
16App.Start(testAsset, [], testFlags: TestFlags.MockBrowser); 39App.Start(testAsset, ["--urls", url], relativeProjectDirectory: "RazorApp", testFlags: TestFlags.ReadKeyFromStdin);
HotReload\ApplyDeltaTests.cs (11)
361App.Start(testAsset, ["--verbose", $"-bl:{binLogPath}"], testFlags: TestFlags.None); 509App.Start(testAsset, [], testFlags: TestFlags.ReadKeyFromStdin); 798App.Start(testAsset, [], testFlags: TestFlags.ReadKeyFromStdin); 829App.Start(testAsset, [], testFlags: TestFlags.ReadKeyFromStdin); 863App.Start(testAsset, ["--urls", "http://localhost:" + port], testFlags: TestFlags.MockBrowser); 919App.Start(testAsset, ["--urls", "http://localhost:" + port], testFlags: TestFlags.MockBrowser); 932App.Start(testAsset, ["--urls", "http://localhost:" + port, "--non-interactive"], testFlags: TestFlags.ReadKeyFromStdin | TestFlags.MockBrowser); 957App.Start(testAsset, ["--urls", "http://localhost:" + port], "blazorhosted", testFlags: TestFlags.MockBrowser); 979App.Start(testAsset, ["--urls", "http://localhost:" + port], relativeProjectDirectory: "RazorApp", testFlags: TestFlags.MockBrowser); 1222App.Start(testAsset, ["-lp", "http"], relativeProjectDirectory: "WatchAspire.AppHost", testFlags: TestFlags.ReadKeyFromStdin);
TestUtilities\TestOptions.cs (1)
18=> new(workingDirectory, muxerPath, TimeSpan.Zero, IsPollingEnabled: true, TestFlags: TestFlags.RunningAsTest, TestOutput: asset != null ? asset.GetWatchTestOutputPath() : "");
TestUtilities\WatchableApp.cs (6)
22public TestFlags TestFlags { get; private set; } 153public void Start(TestAsset asset, IEnumerable<string> arguments, string relativeProjectDirectory = null, string workingDirectory = null, TestFlags testFlags = TestFlags.RunningAsTest) 155if (testFlags != TestFlags.None) 157testFlags |= TestFlags.RunningAsTest; 208Assert.True(TestFlags.HasFlag(TestFlags.ReadKeyFromStdin));
Microsoft.DotNet.HotReload.Watch (17)
AppModels\WebApplicationAppModel.cs (2)
45return new WebAssemblyHotReloadClient(clientLogger, agentLogger, browserRefreshServer, capabilities, targetFramework, context.EnvironmentOptions.TestFlags.HasFlag(TestFlags.MockBrowser)); 64suppressTimeouts: context.EnvironmentOptions.TestFlags != TestFlags.None);
Browser\BrowserLauncher.cs (4)
31if (environmentOptions.TestFlags.HasFlag(TestFlags.MockBrowser)) 71if (environmentOptions.TestFlags != TestFlags.None && environmentOptions.BrowserPath == null) 73if (environmentOptions.TestFlags.HasFlag(TestFlags.MockBrowser)) 92OnOutput = environmentOptions.TestFlags.HasFlag(TestFlags.RedirectBrowserOutput) ? processOutputReporter.ReportOutput : null,
Build\BuildReporter.cs (1)
26if (environmentOptions.TestFlags.HasFlag(TestFlags.RunningAsTest))
Context\EnvironmentOptions.cs (4)
41TestFlags TestFlags = TestFlags.None, 70public bool RunningAsTest { get => (TestFlags & TestFlags.RunningAsTest) != TestFlags.None; }
Context\EnvironmentVariables.cs (3)
41public static TestFlags TestFlags => Environment.GetEnvironmentVariable("__DOTNET_WATCH_TEST_FLAGS") is { } value ? Enum.Parse<TestFlags>(value) : TestFlags.None;
HotReload\HotReloadDotNetWatcher.cs (1)
859List<OutputLine>? capturedOutput = _context.EnvironmentOptions.TestFlags != TestFlags.None ? [] : null;
UI\PhysicalConsole.cs (2)
19public PhysicalConsole(TestFlags testFlags) 22_ = testFlags.HasFlag(TestFlags.ReadKeyFromStdin) ? ListenToStandardInputAsync() : ListenToConsoleKeyPressAsync();
Microsoft.DotNet.HotReload.Watch.Aspire (1)
DotNetWatchLauncher.cs (1)
44var console = new PhysicalConsole(TestFlags.None);