Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Closed
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
3 changes: 3 additions & 0 deletions src/dotnet/commands/dotnet-test/LocalizableStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,7 @@ Outputs a 'Sequence.xml' file in the current directory that captures the order o
<data name="ConfigurationOptionDescription" xml:space="preserve">
<value>The configuration to use for running tests. The default for most projects is 'Debug'.</value>
</data>
<data name="CmdNoLogo" xml:space="preserve">
<value>Run the test, without displaying Microsoft Testplatform banner</value>
</data>
</root>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/TestCommandParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ public static Command Test() =>
LocalizableStrings.CmdBlameDescription,
Accept.NoArguments()
.ForwardAsSingle(o => "-property:VSTestBlame=true")),
Create.Option(
"--nologo|/nologo",
LocalizableStrings.CmdNoLogo,
Accept.NoArguments()
.ForwardAsSingle(o => "-property:VSTestNoLogo=nologo")),
CommonOptions.NoRestoreOption(),
CommonOptions.VerbosityOption());

Expand Down
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Výstupem je soubor Sequence.xml v aktuálním adresáři, do kterého se zaznam
<target state="translated">Konfigurace, která se má použít pro spuštění testů. Výchozí možností pro většinu projektů je Debug.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Im aktuellen Verzeichnis wird eine Datei namens "Sequence.xml" ausgegeben, in de
<target state="translated">Die für die Testausführung zu verwendende Konfiguration. Standard für die meisten Projekte ist "Debug".</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Crea un archivo de salida en el directorio actual como "Sequence.xml" que captur
<target state="translated">La configuración que se usará para ejecutar pruebas. El valor predeterminado para la mayoría de los proyectos es "Debug".</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Elle génère dans le répertoire actif un fichier de sortie nommé 'Sequence.xm
<target state="translated">Configuration à utiliser pour l'exécution des tests. La valeur par défaut pour la plupart des projets est 'Debug'.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Crea nella directory corrente un file di output denominato "Sequence.xml", in cu
<target state="translated">Configurazione da usare per eseguire i test. L'impostazione predefinita per la maggior parte dei progetti è 'Debug'.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Outputs a 'Sequence.xml' file in the current directory that captures the order o
<target state="translated">テストの実行に使用する構成。ほとんどのプロジェクトで、既定値は 'Debug' です。</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Outputs a 'Sequence.xml' file in the current directory that captures the order o
<target state="translated">테스트 실행에 사용할 구성입니다. 대부분의 프로젝트에서 기본값은 'Debug'입니다.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Tworzy w bieżącym katalogu plik wyjściowy „Sequence.xml”, który przechwy
<target state="translated">Konfiguracja do użycia na potrzeby uruchamiania testów. W przypadku większości projektów ustawienie domyślne to „Debugowanie”.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Emite um arquivo 'Sequence.xml' no diretório atual que captura a ordem de execu
<target state="translated">A configuração a ser usada para executar testes. O padrão para a maioria dos projetos é 'Debug'.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Outputs a 'Sequence.xml' file in the current directory that captures the order o
<target state="translated">Конфигурация для выполнения тестов. По умолчанию для большинства проектов используется "Debug".</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
5 changes: 5 additions & 0 deletions src/dotnet/commands/dotnet-test/xlf/LocalizableStrings.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Geçerli dizinde testin kilitlenmeden önceki test yürütme sırasını yakalay
<target state="translated">Testleri çalıştırmak için kullanılacak yapılandırma. Çoğu proje için varsayılan, ‘Hata Ayıklama’ seçeneğidir.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Outputs a 'Sequence.xml' file in the current directory that captures the order o
<target state="translated">用于运行测试的配置。大多数项目的默认值是 "Debug"。</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Outputs a 'Sequence.xml' file in the current directory that captures the order o
<target state="translated">要用於執行測試的組態。大部分的專案預設為「偵錯」。</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run the test, without displaying Microsoft Testplatform banner</source>
<target state="new">Run the test, without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,25 @@ public void ItUsesVerbosityPassedToDefineVerbosityOfConsoleLoggerOfTheTests()
result.ExitCode.Should().Be(1);
}

[Fact]
public void ItAcceptsNoLogoAsCliArguments()
{
// Copy and restore VSTestCore project in output directory of project dotnet-vstest.Tests
var testProjectDirectory = this.CopyAndRestoreVSTestDotNetCoreTestApp("14");

// Call test with logger enable
CommandResult result = new DotnetTestCommand()
.WithWorkingDirectory(testProjectDirectory)
.ExecuteWithCapturedOutput("--nologo");

// Verify
if (!DotnetUnderTest.IsLocalized())
{
result.StdOut.Should().NotContain("Microsoft (R) Test Execution Command Line Tool Version");
result.StdOut.Should().Contain("Total tests: 2. Passed: 1. Failed: 1. Skipped: 0.");
}
}


[WindowsOnlyFact]
public void ItCreatesCoverageFileWhenCodeCoverageEnabledByRunsettings()
Expand Down