src\vstest\src\vstest.console\CommandLine\Executor.cs (8)
33using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
171Output.Error(true, CommandLineResources.NoArgumentsProvided);
271Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoArgumentProcessorFound, arg));
379Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.DuplicateArgumentError, processor.Metadata.Value.CommandName));
478string commandLineBanner = string.Format(CultureInfo.CurrentCulture, CommandLineResources.MicrosoftCommandLineTitle, assemblyVersionAndArchitecture);
492Output.Warning(false, CommandLineResources.VSTestDeprecationMessage);
506Output.Warning(false, CommandLineResources.WarningEmulatedOnArm64, currentProcessArchitecture.ToString().ToLowerInvariant());
574Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.OpenResponseFileError, fileName));
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (45)
19using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
93CommandLineResources.FailedTestIndicator.Length + 1,
94CommandLineResources.PassedTestIndicator.Length + 1,
95CommandLineResources.SkippedTestIndicator.Length + 1,
96CommandLineResources.None.Length
250Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalDays, CommandLineResources.Days));
254Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalHours, CommandLineResources.Hours));
258Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalMinutes, CommandLineResources.Minutes));
262Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalSeconds, CommandLineResources.Seconds));
314Output.Information(false, ConsoleColor.Red, TestResultPrefix + CommandLineResources.ErrorMessageBanner);
322Output.Information(false, ConsoleColor.Red, TestResultPrefix + CommandLineResources.StacktraceBanner);
335Output.Information(false, TestResultPrefix + CommandLineResources.StdOutMessagesBanner);
348Output.Information(false, ConsoleColor.Red, TestResultPrefix + CommandLineResources.StdErrMessagesBanner);
361Output.Information(false, TestResultPrefix + CommandLineResources.DbgTrcMessagesBanner);
374Output.Information(false, TestResultPrefix + CommandLineResources.AddnlInfoMessagesBanner);
429Output.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourcesDiscovered, commandLineOptions.Sources.Count()), OutputLevel.Information);
558Output.Write(GetFormattedTestIndicator(CommandLineResources.SkippedTestIndicator), OutputLevel.Information, ConsoleColor.Yellow);
581Output.Write(GetFormattedTestIndicator(CommandLineResources.FailedTestIndicator), OutputLevel.Information, ConsoleColor.Red);
598Output.Write(GetFormattedTestIndicator(CommandLineResources.PassedTestIndicator), OutputLevel.Information, ConsoleColor.Green);
622Output.Write(GetFormattedTestIndicator(CommandLineResources.SkippedTestIndicator), OutputLevel.Information, ConsoleColor.Yellow);
700Output.Information(false, CommandLineResources.AttachmentsBanner);
706var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath);
763TestOutcome.Failed => (CommandLineResources.FailedTestIndicator + "!").PadRight(LongestResultIndicator),
764TestOutcome.Passed => (CommandLineResources.PassedTestIndicator + "!").PadRight(LongestResultIndicator),
765TestOutcome.Skipped => (CommandLineResources.SkippedTestIndicator + "!").PadRight(LongestResultIndicator),
766_ => CommandLineResources.None.PadRight(LongestResultIndicator),
781var outputLine = string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary,
815Output.Information(false, CommandLineResources.TestRunSummaryAssemblyAndFramework,
831Output.Error(false, CommandLineResources.TestRunCanceled);
837Output.Error(false, CommandLineResources.TestRunAborted);
841Output.Error(false, CommandLineResources.TestRunAbortedWithError, e.Error);
850Output.Error(false, CommandLineResources.TestRunCanceled);
856Output.Error(false, CommandLineResources.TestRunAborted);
860Output.Error(false, CommandLineResources.TestRunAbortedWithError, e.Error);
865Output.Error(false, CommandLineResources.TestRunFailed);
869Output.Information(false, ConsoleColor.Green, CommandLineResources.TestRunSuccessful);
875string totalTestsformat = (e.IsAborted || e.IsCanceled) ? CommandLineResources.TestRunSummaryForCanceledOrAbortedRun : CommandLineResources.TestRunSummaryTotalTests;
880Output.Information(false, ConsoleColor.Green, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryPassedTests, passedTests));
884Output.Information(false, ConsoleColor.Red, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryFailedTests, failedTests));
888Output.Information(false, ConsoleColor.Yellow, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummarySkippedTests, skippedTests));
src\vstest\src\vstest.console\Processors\AeDebuggerArgumentProcessor.cs (9)
24using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
92string exceptionMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidAeDebuggerArgument, _argument ?? "");
123_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.PostmortemDebuggerNotSupportedForCurrentOS));
129_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpToolDirectoryPathArgumenNotFound));
139_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidProcDumpToolDirectoryPath));
150_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath));
157_output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ProcDumpFileNameNotFound, procDumpPath));
167CommandLineResources.ProcDumpDirectoryPathArgumenNotFound,
168CommandLineResources.InvalidProcDumpDirectoryPath,
src\vstest\src\vstest.console\Processors\ListExtensionsArgumentProcessor.cs (11)
13using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
85ConsoleOutput.Instance.WriteLine(CommandLineResources.AvailableDiscoverersHeaderMessage, OutputLevel.Information);
91ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UriOfDefaultExecutor, extension.Metadata.DefaultExecutorUri), OutputLevel.Information);
92ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.SupportedFileTypesIndicator + " " + string.Join(", ", extension.Metadata.FileExtension!)), OutputLevel.Information);
122ConsoleOutput.Instance.WriteLine(CommandLineResources.AvailableExecutorsHeaderMessage, OutputLevel.Information);
128ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "Uri", extension.Metadata.ExtensionUri), OutputLevel.Information);
158ConsoleOutput.Instance.WriteLine(CommandLineResources.AvailableLoggersHeaderMessage, OutputLevel.Information);
172ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "Uri", extension.Metadata.ExtensionUri), OutputLevel.Information);
173ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "FriendlyName", string.Join(", ", extension.Metadata.FriendlyName)), OutputLevel.Information);
210ConsoleOutput.Instance.WriteLine(CommandLineResources.AvailableSettingsProvidersHeaderMessage, OutputLevel.Information);
216ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "SettingName", extension.Metadata.SettingsName), OutputLevel.Information);
src\vstest\src\vstest.console\Processors\RunSpecificTestsArgumentProcessor.cs (12)
22using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
69public override string HelpContentResourceName => CommandLineResources.RunSpecificTestsHelp;
177throw new CommandLineException(CommandLineResources.SpecificTestsRequired);
197throw new CommandLineException(CommandLineResources.MissingTestSourceFile);
223Output.WriteLine(CommandLineResources.StartingDiscovery, OutputLevel.Information);
228Output.Information(false, CommandLineResources.VstestDiagLogOutputPath, EqtTrace.LogFile);
245string warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.SomeTestsUnavailableAfterFiltering, _discoveredTestCount, missingFilters);
262warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableAfterFiltering, _discoveredTestCount, string.Join(", ", _selectedTestNames!));
267warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableInSources, string.Join(", ", _commandLineOptions.Sources));
271warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.StringFormatToJoinTwoStrings, warningMessage, CommandLineResources.SuggestTestAdapterPathIfNoTestsIsFound);
378_output.Warning(false, CommandLineResources.SuggestTestAdapterPathIfNoTestsIsFound);
src\vstest\src\vstest.console\Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (7)
16using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
75public override string HelpContentResourceName => CommandLineResources.TestAdapterLoadingStrategyHelp;
133throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalidRecursive, $"{nameof(TestAdapterLoadingStrategy.Explicit)}, {nameof(TestAdapterLoadingStrategy.NextToSource)}"));
168throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalid, value));
185throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequiredWhenStrategyXIsUsed, nameof(TestAdapterLoadingStrategy.Explicit)));
222string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestAdapterPathCommand, adapterPath, CommandLineResources.TestAdapterPathDoesNotExist)