23 references to TestCommandParser
dotnet (17)
Commands\Test\MTP\MSBuildUtility.cs (5)
74var msbuildArgs = parseResult.OptionValuesToBeForwarded(TestCommandParser.GetCommand()) 106parseResult.HasOption(TestCommandParser.VerbosityOption) ? parseResult.GetValue(TestCommandParser.VerbosityOption) : null, 126var parsedMSBuildArgs = MSBuildArgs.AnalyzeMSBuildArguments(msbuildArgs, CommonOptions.PropertiesOption, CommonOptions.RestorePropertiesOption, TestCommandParser.MTPTargetOption, TestCommandParser.VerbosityOption);
Commands\Test\VSTest\TestCommand.cs (8)
182result.OptionValuesToBeForwarded(TestCommandParser.GetCommand()) // all msbuild-recognized tokens 203string? verbosityArg = result.ForwardedOptionValues<IReadOnlyCollection<string>>(TestCommandParser.GetCommand(), "--verbosity")?.SingleOrDefault() ?? null; 220bool noRestore = result.GetValue(TestCommandParser.NoRestoreOption) || result.GetValue(TestCommandParser.NoBuildOption); 226TestCommandParser.VsTestTargetOption, 227TestCommandParser.VerbosityOption); 273if (parseResult.GetResult(TestCommandParser.DiagOption) is not null) 275artifactsPostProcessArgs.Add($"--diag:{parseResult.GetValue(TestCommandParser.DiagOption)}");
Extensions\OptionForwardingExtensions.cs (1)
67argVal = TestCommandParser.SurroundWithDoubleQuotes(argVal);
Parser.cs (1)
85TestCommandParser.GetCommand(),
Telemetry\TelemetryFilter.cs (2)
120TestCommandParser.FrameworkOption, RunCommandParser.ConfigurationOption, CleanCommandParser.ConfigurationOption, 121TestCommandParser.ConfigurationOption ]
dotnet.Tests (6)
CommandTests\Test\TestCommandParserTests.cs (6)
17TestCommandParser.SurroundWithDoubleQuotes(null)); 27var result = TestCommandParser.SurroundWithDoubleQuotes(escapedInput); 39var result = TestCommandParser.SurroundWithDoubleQuotes(input); 50var result = TestCommandParser.SurroundWithDoubleQuotes(input); 61var result = TestCommandParser.SurroundWithDoubleQuotes(input); 68var command = TestCommandParser.GetCommand();