Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "dotnet test --verbosity" arg for console verbosity #735

Merged
merged 5 commits into from
Apr 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Copyright (c) .NET Foundation. All rights reserved.
VSTestCLIRunSettings="$(VSTestCLIRunSettings)"
VSTestConsolePath="$(VSTestConsolePath)"
VSTestResultsDirectory="$(VSTestResultsDirectory)"
VSTestVerbosity="$(VSTestVerbosity)"
/>
</Target>

Expand Down Expand Up @@ -79,6 +80,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<Message Text="VSTestCLIRunSettings = $(VSTestCLIRunSettings)" Importance="low" />
<Message Text="VSTestResultsDirectory = $(VSTestResultsDirectory)" Importance="low" />
<Message Text="VSTestConsolePath = $(VSTestConsolePath)" Importance="low" />
<Message Text="VSTestVerbosity = $(VSTestVerbosity)" Importance="low" />
</Target>

</Project>
27 changes: 26 additions & 1 deletion src/Microsoft.TestPlatform.Build/Tasks/VSTestTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public string[] VSTestCLIRunSettings
[Required]
public string VSTestConsolePath
{
get;
get;
set;
}

Expand All @@ -92,6 +92,12 @@ public string VSTestResultsDirectory
set;
}

public string VSTestVerbosity
{
get;
set;
}

public override bool Execute()
{
var traceEnabledValue = Environment.GetEnvironmentVariable("VSTEST_BUILD_TRACE");
Expand Down Expand Up @@ -181,6 +187,25 @@ internal IEnumerable<string> CreateArgument()
}
}

if (!string.IsNullOrWhiteSpace(this.VSTestVerbosity) &&
(string.IsNullOrEmpty(this.VSTestLogger) || !this.VSTestLogger.StartsWith("console", StringComparison.OrdinalIgnoreCase)))
{
var normalTestLogging = new List<string>() { "n", "normal", "d", "detailed", "diag", "diagnostic" };
var quietTestLogging = new List<string>() { "q", "quiet" };

string vsTestVerbosity = "minimal";
if (normalTestLogging.Contains(this.VSTestVerbosity))
{
vsTestVerbosity = "normal";
}
else if (quietTestLogging.Contains(this.VSTestVerbosity))
{
vsTestVerbosity = "quiet";
}

allArgs.Add("--logger:Console;Verbosity=" + vsTestVerbosity);
}

if (this.VSTestCLIRunSettings != null && this.VSTestCLIRunSettings.Length > 0)
{
allArgs.Add("--");
Expand Down
6 changes: 2 additions & 4 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.

4 changes: 1 addition & 3 deletions src/vstest.console/Resources/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,8 @@
<value>Error Message:</value>
</data>
<data name="Examples" xml:space="preserve">
<value> To run tests in the same process:
<value> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</value>
</data>
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Spuštění testů ve stejném procesu:
<target state="new"> Spuštění testů ve stejném procesu:
&gt;vstest.console.exe tests.dll
Spuštění testů v samostatném procesu:
&gt;vstest.console.exe /inIsolation tests.dll
Spuštění testů s dalšími nastaveními, třeba s kolekcemi dat:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Chcete-li spustit testy ve stejném procesu:
&gt; vstest.console.exe tests.dll Chcete-li spustit testy v samostatném procesu:
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> So führen Sie Tests im gleichen Prozess aus:
<target state="new"> So führen Sie Tests im gleichen Prozess aus:
&gt;vstest.console.exe tests.dll
So führen Sie Tests in einem separaten Prozess aus:
&gt;vstest.console.exe /inIsolation tests.dll
So führen Sie Tests mit zusätzlichen Einstellungen wie Datensammlern aus:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Tests im gleichen Prozess ausgeführt:
&gt; vstest.console.exe tests.dll Tests in einem separaten Prozess ausführen:
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -469,20 +469,18 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Para ejecutar pruebas en el mismo proceso:
<target state="new"> Para ejecutar pruebas en el mismo proceso:
&gt;vstest.console.exe tests.dll
Para ejecutar pruebas en un proceso aparte:
&gt;vstest.console.exe /inIsolation tests.dll
Para ejecutar las pruebas con configuración adicional, como
recopiladores de datos:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Para ejecutar pruebas en el mismo proceso:
&gt; vstest.console.exe tests.dll para ejecutar pruebas en un proceso independiente:
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Pour exécuter les tests dans le même processus :
<target state="new"> Pour exécuter les tests dans le même processus :
&gt;vstest.console.exe tests.dll
Pour exécuter les tests dans un processus distinct :
&gt;vstest.console.exe /inIsolation tests.dll
Pour exécuter les tests avec des paramètres supplémentaires, par exemple des collecteurs de données :
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Pour exécuter des tests dans le même processus :
&gt; tests.dll vstest.console.exe pour exécuter les tests dans un processus distinct :
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Per eseguire test nello stesso processo:
<target state="new"> Per eseguire test nello stesso processo:
&gt;vstest.console.exe tests.dll
Per eseguire test in un processo separato:
&gt;vstest.console.exe /inIsolation tests.dll
Per eseguire test con ulteriori impostazioni, quali agenti di raccolta dati:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Per eseguire i test nello stesso processo:
&gt; Tests vstest.console.exe per eseguire test in un processo separato:
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> 同じプロセスでテストを実行する:
<target state="new"> 同じプロセスでテストを実行する:
&gt;vstest.console.exe tests.dll
個別のプロセスでテストを実行する:
&gt;vstest.console.exe /inIsolation tests.dll
データ コレクターなどの追加設定を指定してテストを実行する:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">同じプロセスでテストを実行します。
&gt; vstest.console.exe tests.dll を別のプロセスでテストを実行します。
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> 동일한 프로세스에서 테스트를 실행하려면 다음을 사용합니다.
<target state="new"> 동일한 프로세스에서 테스트를 실행하려면 다음을 사용합니다.
&gt;vstest.console.exe tests.dll
별도의 프로세스에서 테스트를 실행하려면 다음을 사용합니다.
&gt;vstest.console.exe /inIsolation tests.dll
데이터 수집기 등의 추가 설정을 사용하여 테스트를 실행하려면 다음을 사용합니다.
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">동일한 프로세스에서 테스트 실행:
&gt; vstest.console.exe tests.dll는 별도 프로세스에서 테스트를 실행 합니다.
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Aby uruchomić testy w tym samym procesie:
<target state="new"> Aby uruchomić testy w tym samym procesie:
&gt;vstest.console.exe tests.dll
Aby uruchomić testy w oddzielnym procesie:
&gt;vstest.console.exe /inIsolation tests.dll
Aby uruchomić testy z dodatkowymi ustawieniami, na przykład z modułami zbierającymi dane:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Aby uruchomić testy w tym samym procesie:
&gt; tests.dll vstest.console.exe, aby uruchomić testy w oddzielnym procesie:
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.pt-BR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Para executar testes no mesmo processo:
<target state="new"> Para executar testes no mesmo processo:
&gt;vstest.console.exe tests.dll
Para executar testes em um processo separado:
&gt;vstest.console.exe /inIsolation tests.dll
Para executar testes com configurações adicionais, como coletores de dados:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Para executar testes no mesmo processo:
&gt; vstest.console.exe Tests para executar testes em um processo separado:
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Для запуска тестов в том же процессе:
<target state="new"> Для запуска тестов в том же процессе:
&gt;vstest.console.exe tests.dll
Для запуска тестов в отдельном процессе:
&gt;vstest.console.exe /inIsolation tests.dll
Для запуска тестов с дополнительными параметрами, например со сборщиками данных:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Для выполнения тестов в том же процессе:
&gt; tests.dll vstest.console.exe для выполнения тестов в отдельном процессе:
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -468,19 +468,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> Testleri aynı işlemde çalıştırmak için:
<target state="new"> Testleri aynı işlemde çalıştırmak için:
&gt;vstest.console.exe tests.dll
Testleri ayrı bir işlemde çalıştırmak için:
&gt;vstest.console.exe /inIsolation tests.dll
Testleri veri toplayıcılar gibi ek ayarlarla çalıştırmak için:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">Aynı işlem içinde testleri çalıştırmak için:
&gt; vstest.console.exe tests.dll testleri ayrı bir işlemde çalıştırmak için:
Expand Down
4 changes: 1 addition & 3 deletions src/vstest.console/Resources/xlf/Resources.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,8 @@
<note></note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<note></note>
Expand Down
8 changes: 3 additions & 5 deletions src/vstest.console/Resources/xlf/Resources.zh-Hans.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -467,19 +467,17 @@
<note from="bb-metadata">fuzzyMatch="15" wordcount="14" adjWordcount="11.9" curWordcount="11.9"</note>
</trans-unit>
<trans-unit id="Examples">
<source> To run tests in the same process:
<source> To run tests:
&gt;vstest.console.exe tests.dll
To run tests in a separate process:
&gt;vstest.console.exe /inIsolation tests.dll
To run tests with additional settings such as data collectors:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</source>
<target state="translated"> 在同一进程中运行测试:
<target state="new"> 在同一进程中运行测试:
&gt;vstest.console.exe tests.dll
在单独的进程中运行测试:
&gt;vstest.console.exe /inIsolation tests.dll
使用其他设置(如数据收集器)运行测试:
&gt;vstest.console.exe tests.dll /Settings:Local.RunSettings</target>
<note />
<note></note>
<alt-trans match-quality="100%" tool="BlackBox/MSR MT">
<target state-qualifier="mt-suggestion">同一进程中运行测试︰
&gt; vstest.console.exe tests.dll 若要在单独的进程中运行测试︰
Expand Down
Loading