Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
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
5 changes: 4 additions & 1 deletion src/dotnet/commands/dotnet-test/LocalizableStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,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>
</root>
<data name="CmdNoLogo" xml:space="preserve">
<value>Run test(s), 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 @@ -91,6 +91,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.InteractiveOption(),
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 @@ -12,6 +12,11 @@
<target state="translated">Testovací ovladač pro platformu .NET</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">Testtreiber für die .NET-Plattform</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">Controlador de pruebas para la plataforma .NET</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">ARCHIVO_CONFIGURACIÓN</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">Pilote de test pour la plateforme .NET</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">Driver di test per la piattaforma .NET</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">FILE_IMPOSTAZIONI</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">.NET Platform 用テスト ドライバー</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">.NET 플랫폼용 테스트 드라이버입니다.</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">Sterownik testów dla platformy .NET</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">PLIK_USTAWIEŃ</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<target state="translated">Driver de Teste para a Plataforma .NET</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">Драйвер тестов для платформы .NET</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
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 @@ -12,6 +12,11 @@
<target state="translated">.NET Platformunun Test Sürücüsü</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">AYAR_DOSYASI</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<target state="translated">适用于 .NET 平台的测试驱动程序</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<target state="translated">適用於 .NET 平台的測試驅動程式</target>
<note />
</trans-unit>
<trans-unit id="CmdNoLogo">
<source>Run test(s), without displaying Microsoft Testplatform banner</source>
<target state="new">Run test(s), without displaying Microsoft Testplatform banner</target>
<note />
</trans-unit>
<trans-unit id="CmdSettingsFile">
<source>SETTINGS_FILE</source>
<target state="translated">SETTINGS_FILE</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,25 @@ public void ItTestsWithTheSpecifiedRuntimeOption()
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