Skip to content

Commit

Permalink
fixed help test to mention default value of verbosity in console logg…
Browse files Browse the repository at this point in the history
…er (#1433)

* fixed help test to mention default value of verbosity in console logger

* Pr comment

* fix
  • Loading branch information
acesiddhu authored Feb 14, 2018
1 parent 2cee46f commit 7eb6c4e
Show file tree
Hide file tree
Showing 31 changed files with 634 additions and 224 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="cs" original="../Resources.resx" build-num="1496413687">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="de" original="../Resources.resx" build-num="-1605532954">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="es" original="../Resources.resx" build-num="1392533617">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="fr" original="../Resources.resx" build-num="-1747068205">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="it" original="../Resources.resx" build-num="-2078370022">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ja" original="../Resources.resx" build-num="-1298029716">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ko" original="../Resources.resx" build-num="1470250083">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="pl" original="../Resources.resx" build-num="1548376603">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="pt-BR" original="../Resources.resx" build-num="1733331294">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ru" original="../Resources.resx" build-num="-1103770912">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="tr" original="../Resources.resx" build-num="1612553793">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hans" original="../Resources.resx" build-num="-1038642004">
<header>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hant" original="../Resources.resx" build-num="1380117387">
<header>
Expand Down
12 changes: 8 additions & 4 deletions src/vstest.console/Processors/EnableLoggerArgumentProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ internal class EnableLoggerArgumentProcessorCapabilities : BaseArgumentProcessor
/// <summary>
/// Gets the help content resource name.
/// </summary>
#if NET451
public override string HelpContentResourceName => CommandLineResources.EnableLoggersArgumentHelp;
#else
public override string HelpContentResourceName => CommandLineResources.EnableLoggerArgumentsInNetCore;
#endif

/// <summary>
/// Gets the help priority.
Expand All @@ -125,7 +129,7 @@ internal class EnableLoggerArgumentExecutor : IArgumentExecutor
{
private readonly IRunSettingsProvider runSettingsManager;

#region Constructors
#region Constructors

/// <summary>
/// Initializes a new instance of the <see cref="EnableLoggerArgumentExecutor"/> class.
Expand All @@ -136,9 +140,9 @@ public EnableLoggerArgumentExecutor(IRunSettingsProvider runSettingsManager)
this.runSettingsManager = runSettingsManager;
}

#endregion
#endregion

#region IArgumentProcessor
#region IArgumentProcessor

/// <summary>
/// Initializes with the argument that was provided with the command.
Expand Down Expand Up @@ -254,6 +258,6 @@ public ArgumentProcessorResult Execute()
return ArgumentProcessorResult.Success;
}

#endregion
#endregion
}
}
19 changes: 19 additions & 0 deletions src/vstest.console/Resources/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions src/vstest.console/Resources/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,12 @@
Creates file in TestResults directory with given LogFileName.

Change the verbosity level in log messages for console logger as shown below
Example: /logger:console;verbosity=&lt;Defaults to "minimal"&gt;
Allowed values for verbosity: quiet, minimal and normal.
Example: /logger:console;verbosity=&lt;Defaults to "normal"&gt;
Allowed values for verbosity: quiet, minimal, normal and detailed.

Change the diagnostic level prefix for console logger as shown below
Example: /logger:console;prefix=&lt;Defaults to "false"&gt;
More info on Console Logger here : https://aka.ms/console-logger

To publish test results to Team Foundation Server, use TfsPublisher as shown below
Example: /logger:TfsPublisher;
Collection=&lt;team project collection url&gt;;
BuildName=&lt;build name&gt;;
TeamProject=&lt;team project name&gt;
[;Platform=&lt;Defaults to "Any CPU"&gt;]
[;Flavor=&lt;Defaults to "Debug"&gt;]
[;RunTitle=&lt;title&gt;]</value>
More info on Console Logger here : https://aka.ms/console-logger</value>
</data>
<data name="ErrorMessageBanner" xml:space="preserve">
<value>Error Message:</value>
Expand Down Expand Up @@ -678,4 +669,18 @@
<data name="RunsettingsWithDCErrorMessage" xml:space="preserve">
<value>Data collectors other than Code Coverage and Microsoft Fakes configured via run settings are not supported with embedded test settings. Please see https://aka.ms/vstest-configure-datacollector for more information. Run settings: {0}.</value>
</data>
<data name="EnableLoggerArgumentsInNetCore" xml:space="preserve">
<value>--logger|/logger:&lt;Logger Uri/FriendlyName&gt;
Specify a logger for test results. For example, to log results into a
Visual Studio Test Results File (TRX) use /logger:trx[;LogFileName=&lt;Defaults to unique file name&gt;]
Creates file in TestResults directory with given LogFileName.

Change the verbosity level in log messages for console logger as shown below
Example: /logger:console;verbosity=&lt;Defaults to "minimal"&gt;
Allowed values for verbosity: quiet, minimal, normal and detailed.

Change the diagnostic level prefix for console logger as shown below
Example: /logger:console;prefix=&lt;Defaults to "false"&gt;
More info on Console Logger here : https://aka.ms/console-logger</value>
</data>
</root>
55 changes: 41 additions & 14 deletions src/vstest.console/Resources/xlf/Resources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -219,22 +219,13 @@
Creates file in TestResults directory with given LogFileName.

Change the verbosity level in log messages for console logger as shown below
Example: /logger:console;verbosity=&lt;Defaults to "minimal"&gt;
Allowed values for verbosity: quiet, minimal and normal.
Example: /logger:console;verbosity=&lt;Defaults to "normal"&gt;
Allowed values for verbosity: quiet, minimal, normal and detailed.

Change the diagnostic level prefix for console logger as shown below
Example: /logger:console;prefix=&lt;Defaults to "false"&gt;
More info on Console Logger here : https://aka.ms/console-logger

To publish test results to Team Foundation Server, use TfsPublisher as shown below
Example: /logger:TfsPublisher;
Collection=&lt;team project collection url&gt;;
BuildName=&lt;build name&gt;;
TeamProject=&lt;team project name&gt;
[;Platform=&lt;Defaults to "Any CPU"&gt;]
[;Flavor=&lt;Defaults to "Debug"&gt;]
[;RunTitle=&lt;title&gt;]</source>
<target state="translated">--logger|/logger:&lt;Identifikátor URI protokolovače / PopisnýNázev&gt;
More info on Console Logger here : https://aka.ms/console-logger</source>
<target state="new">--logger|/logger:&lt;Identifikátor URI protokolovače / PopisnýNázev&gt;
Určuje protokolovač pro výsledky testu. Pokud třeba chcete protokolovat výsledky
do souboru výsledků testů sady Visual Studio (TRX), použijte /logger:trx[;LogFileName=&lt;Jako výchozí se nastaví jedinečný název souboru.&gt;]
Vytvoří soubor v adresáři TestResults s daným názvem LogFileName.
Expand All @@ -255,7 +246,7 @@
[;Platform=&lt;Výchozí hodnotou je Any CPU.&gt;]
[;Flavor=&lt;Výchozí hodnotou je Debug.&gt;]
[;RunTitle=&lt;nadpis&gt;]</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">--protokoly | / logger: &lt; Uri/FriendlyName protokolovacího nástroje &gt;
Zadejte protokolovací nástroj pro výsledky testů. Výsledky do Visual Studio testovací výsledky souboru (TRX) použijte k přihlášení /logger:trx.
Expand Down Expand Up @@ -1565,6 +1556,42 @@
<target state="translated">Kolekce dat jiné než Pokrytí kódu a Microsoft Fakes konfigurované prostřednictvím nastavení běhu nejsou podporované s vloženým nastavením testů. Další informace viz https://aka.ms/vstest-configure-datacollector. Nastavení běhu: {0}</target>
<note />
</trans-unit>
<trans-unit id="EnableLoggerArgumentsInNetCore">
<source>--logger|/logger:&lt;Logger Uri/FriendlyName&gt;
Specify a logger for test results. For example, to log results into a
Visual Studio Test Results File (TRX) use /logger:trx[;LogFileName=&lt;Defaults to unique file name&gt;]
Creates file in TestResults directory with given LogFileName.

Change the verbosity level in log messages for console logger as shown below
Example: /logger:console;verbosity=&lt;Defaults to "minimal"&gt;
Allowed values for verbosity: quiet, minimal, normal and detailed.

Change the diagnostic level prefix for console logger as shown below
Example: /logger:console;prefix=&lt;Defaults to "false"&gt;
More info on Console Logger here : https://aka.ms/console-logger</source>
<target state="new">--logger|/logger:&lt;Logger Uri/FriendlyName&gt;
Specify a logger for test results. For example, to log results into a
Visual Studio Test Results File (TRX) use /logger:trx[;LogFileName=&lt;Defaults to unique file name&gt;]
Creates file in TestResults directory with given LogFileName.

Change the verbosity level in log messages for console logger as shown below
Example: /logger:console;verbosity=&lt;Defaults to "minimal"&gt;
Allowed values for verbosity: quiet, minimal, normal and detailed.

Change the diagnostic level prefix for console logger as shown below
Example: /logger:console;prefix=&lt;Defaults to "false"&gt;
More info on Console Logger here : https://aka.ms/console-logger

To publish test results to Team Foundation Server, use TfsPublisher as shown below
Example: /logger:TfsPublisher;
Collection=&lt;team project collection url&gt;;
BuildName=&lt;build name&gt;;
TeamProject=&lt;team project name&gt;
[;Platform=&lt;Defaults to "Any CPU"&gt;]
[;Flavor=&lt;Defaults to "Debug"&gt;]
[;RunTitle=&lt;title&gt;]</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>
Loading

0 comments on commit 7eb6c4e

Please sign in to comment.