src\vstest\src\vstest.console\CommandLine\Executor.cs (8)
29using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
144Output.Error(true, CommandLineResources.NoArgumentsProvided);
244Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoArgumentProcessorFound, arg));
352Output.Error(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.DuplicateArgumentError, processor.Metadata.Value.CommandName));
451string commandLineBanner = string.Format(CultureInfo.CurrentCulture, CommandLineResources.MicrosoftCommandLineTitle, assemblyVersionAndArchitecture);
465Output.Warning(false, CommandLineResources.VSTestDeprecationMessage);
479Output.Warning(false, CommandLineResources.WarningEmulatedOnArm64, currentProcessArchitecture.ToString().ToLowerInvariant());
547Output.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
240Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalDays, CommandLineResources.Days));
244Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalHours, CommandLineResources.Hours));
248Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalMinutes, CommandLineResources.Minutes));
252Output.Information(false, string.Format(CultureInfo.CurrentCulture, CommandLineResources.ExecutionTimeFormatString, timeSpan.TotalSeconds, CommandLineResources.Seconds));
304Output.Information(false, ConsoleColor.Red, TestResultPrefix + CommandLineResources.ErrorMessageBanner);
312Output.Information(false, ConsoleColor.Red, TestResultPrefix + CommandLineResources.StacktraceBanner);
325Output.Information(false, TestResultPrefix + CommandLineResources.StdOutMessagesBanner);
338Output.Information(false, ConsoleColor.Red, TestResultPrefix + CommandLineResources.StdErrMessagesBanner);
351Output.Information(false, TestResultPrefix + CommandLineResources.DbgTrcMessagesBanner);
364Output.Information(false, TestResultPrefix + CommandLineResources.AddnlInfoMessagesBanner);
418Output.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestSourcesDiscovered, CommandLineOptions.Instance.Sources.Count()), OutputLevel.Information);
547Output.Write(GetFormattedTestIndicator(CommandLineResources.SkippedTestIndicator), OutputLevel.Information, ConsoleColor.Yellow);
570Output.Write(GetFormattedTestIndicator(CommandLineResources.FailedTestIndicator), OutputLevel.Information, ConsoleColor.Red);
587Output.Write(GetFormattedTestIndicator(CommandLineResources.PassedTestIndicator), OutputLevel.Information, ConsoleColor.Green);
611Output.Write(GetFormattedTestIndicator(CommandLineResources.SkippedTestIndicator), OutputLevel.Information, ConsoleColor.Yellow);
689Output.Information(false, CommandLineResources.AttachmentsBanner);
695var attachmentOutput = string.Format(CultureInfo.CurrentCulture, CommandLineResources.AttachmentOutputFormat, uriDataAttachment.Uri.LocalPath);
752TestOutcome.Failed => (CommandLineResources.FailedTestIndicator + "!").PadRight(LongestResultIndicator),
753TestOutcome.Passed => (CommandLineResources.PassedTestIndicator + "!").PadRight(LongestResultIndicator),
754TestOutcome.Skipped => (CommandLineResources.SkippedTestIndicator + "!").PadRight(LongestResultIndicator),
755_ => CommandLineResources.None.PadRight(LongestResultIndicator),
770var outputLine = string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummary,
804Output.Information(false, CommandLineResources.TestRunSummaryAssemblyAndFramework,
820Output.Error(false, CommandLineResources.TestRunCanceled);
826Output.Error(false, CommandLineResources.TestRunAborted);
830Output.Error(false, CommandLineResources.TestRunAbortedWithError, e.Error);
839Output.Error(false, CommandLineResources.TestRunCanceled);
845Output.Error(false, CommandLineResources.TestRunAborted);
849Output.Error(false, CommandLineResources.TestRunAbortedWithError, e.Error);
854Output.Error(false, CommandLineResources.TestRunFailed);
858Output.Information(false, ConsoleColor.Green, CommandLineResources.TestRunSuccessful);
864string totalTestsformat = (e.IsAborted || e.IsCanceled) ? CommandLineResources.TestRunSummaryForCanceledOrAbortedRun : CommandLineResources.TestRunSummaryTotalTests;
869Output.Information(false, ConsoleColor.Green, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryPassedTests, passedTests));
873Output.Information(false, ConsoleColor.Red, string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestRunSummaryFailedTests, failedTests));
877Output.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);
164ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "Uri", extension.Metadata.ExtensionUri), OutputLevel.Information);
165ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "FriendlyName", string.Join(", ", extension.Metadata.FriendlyName)), OutputLevel.Information);
202ConsoleOutput.Instance.WriteLine(CommandLineResources.AvailableSettingsProvidersHeaderMessage, OutputLevel.Information);
208ConsoleOutput.Instance.WriteLine(string.Format(CultureInfo.CurrentCulture, CommandLineResources.AvailableExtensionsMetadataFormat, "SettingName", extension.Metadata.SettingsName), OutputLevel.Information);
src\vstest\src\vstest.console\Processors\RunSpecificTestsArgumentProcessor.cs (12)
23using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
60public override string HelpContentResourceName => CommandLineResources.RunSpecificTestsHelp;
168throw new CommandLineException(CommandLineResources.SpecificTestsRequired);
188throw new CommandLineException(CommandLineResources.MissingTestSourceFile);
214Output.WriteLine(CommandLineResources.StartingDiscovery, OutputLevel.Information);
219Output.Information(false, CommandLineResources.VstestDiagLogOutputPath, EqtTrace.LogFile);
236string warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.SomeTestsUnavailableAfterFiltering, _discoveredTestCount, missingFilters);
253warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableAfterFiltering, _discoveredTestCount, string.Join(", ", _selectedTestNames!));
258warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.NoTestsAvailableInSources, string.Join(", ", _commandLineOptions.Sources));
262warningMessage = string.Format(CultureInfo.CurrentCulture, CommandLineResources.StringFormatToJoinTwoStrings, warningMessage, CommandLineResources.SuggestTestAdapterPathIfNoTestsIsFound);
367_output.Warning(false, CommandLineResources.SuggestTestAdapterPathIfNoTestsIsFound);
src\vstest\src\vstest.console\Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (7)
16using CommandLineResources = Microsoft.VisualStudio.TestPlatform.CommandLine.Resources.Resources;
67public override string HelpContentResourceName => CommandLineResources.TestAdapterLoadingStrategyHelp;
125throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalidRecursive, $"{nameof(TestAdapterLoadingStrategy.Explicit)}, {nameof(TestAdapterLoadingStrategy.NextToSource)}"));
160throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalid, value));
177throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequiredWhenStrategyXIsUsed, nameof(TestAdapterLoadingStrategy.Explicit)));
214string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidTestAdapterPathCommand, adapterPath, CommandLineResources.TestAdapterPathDoesNotExist)