diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/MSBuildResources.resx b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/MSBuildResources.resx index 16ec9b3e2a..c8dea368db 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/MSBuildResources.resx +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/MSBuildResources.resx @@ -164,4 +164,10 @@ You can resolve the problem by installing the '{1}' .NET. The specified framework can be found at: - https://aka.ms/dotnet-download + + MSBuild extension failed to receive test application information from '{0}' + + + MSBuild extension failed to receive test run summary from '{0}' + \ No newline at end of file diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.cs.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.cs.xlf index 4d5d498aab..7f19179d36 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.cs.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.cs.xlf @@ -7,6 +7,16 @@ Skutečná hodnota: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Očekávaná hodnota: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.de.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.de.xlf index 9df371921e..39ab7877b9 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.de.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.de.xlf @@ -7,6 +7,16 @@ Tatsächlicher Wert: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Erwarteter Wert: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.es.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.es.xlf index b441e35b36..ed0deb8413 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.es.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.es.xlf @@ -7,6 +7,16 @@ Valor real: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Valor esperado: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.fr.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.fr.xlf index 4b952b1e7e..b492c71ec2 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.fr.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.fr.xlf @@ -7,6 +7,16 @@ Valeur réelle : {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Valeur attendue : {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.it.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.it.xlf index 2844eabf0c..c6d148b2ef 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.it.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.it.xlf @@ -7,6 +7,16 @@ Valore effettivo: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Valore previsto: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ja.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ja.xlf index ebbd3e6934..2f5b4475a9 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ja.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ja.xlf @@ -7,6 +7,16 @@ 実際の値: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} 想定された値: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ko.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ko.xlf index bcf296a8bf..3245b58599 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ko.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ko.xlf @@ -7,6 +7,16 @@ 실제 값: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} 예상 값: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pl.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pl.xlf index 379ac3ff97..12709bef09 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pl.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pl.xlf @@ -7,6 +7,16 @@ Wartość rzeczywista: {0}. + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Oczekiwana wartość: {0}. diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pt-BR.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pt-BR.xlf index 7d18cd1dd3..a29e1696a9 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pt-BR.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.pt-BR.xlf @@ -7,6 +7,16 @@ Valor real: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Valor esperado: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ru.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ru.xlf index 8297566eff..747bb245be 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ru.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.ru.xlf @@ -7,6 +7,16 @@ Действительное значение: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Ожидаемое значение: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.tr.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.tr.xlf index b4934b11c0..1786a52e80 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.tr.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.tr.xlf @@ -7,6 +7,16 @@ Gerçek değer: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} Beklenen değer: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hans.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hans.xlf index 86df598ffe..852f632b5c 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hans.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hans.xlf @@ -7,6 +7,16 @@ 实际值: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} 预期的值: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hant.xlf b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hant.xlf index 392c6a45ae..8a78492ba2 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hant.xlf +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Resources/xlf/MSBuildResources.zh-Hant.xlf @@ -7,6 +7,16 @@ 實際值: {0} + + MSBuild extension failed to receive test application information from '{0}' + MSBuild extension failed to receive test application information from '{0}' + + + + MSBuild extension failed to receive test run summary from '{0}' + MSBuild extension failed to receive test run summary from '{0}' + + Expected value: {0} 預期的值: {0} diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs b/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs index c224cf98b7..544781520b 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs @@ -39,6 +39,7 @@ public class InvokeTestingPlatformTask : Build.Utilities.ToolTask, IDisposable private Task? _connectionLoopTask; private ModuleInfoRequest? _moduleInfo; + private bool _receivedRunSummaryInfoRequest; private string? _outputFileName; private StreamWriter? _outputFileStream; private string? _toolCommand; @@ -388,6 +389,18 @@ public override bool Execute() if (returnValue) { + if (_moduleInfo is null) + { + Log.LogError(Resources.MSBuildResources.DidNotReceiveModuleInfo, TargetPath.ItemSpec.Trim()); + return false; + } + + if (!_receivedRunSummaryInfoRequest) + { + Log.LogError(Resources.MSBuildResources.DidNotReceiveRunSummaryInfo, TargetPath.ItemSpec.Trim()); + return false; + } + Log.LogMessage(MessageImportance.High, Resources.MSBuildResources.TestsSucceeded, TargetPath.ItemSpec.Trim(), TargetFramework.ItemSpec, TestArchitecture.ItemSpec); } @@ -514,6 +527,7 @@ private Task HandleRequestAsync(IRequest request) Log.LogMessage(MessageImportance.High, summary); } + _receivedRunSummaryInfoRequest = true; return Task.FromResult(VoidResponse.CachedInstance); } diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/buildMultiTargeting/Microsoft.Testing.Platform.MSBuild.VSTest.targets b/src/Platform/Microsoft.Testing.Platform.MSBuild/buildMultiTargeting/Microsoft.Testing.Platform.MSBuild.VSTest.targets index fabf93e33f..5ea520c8a6 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/buildMultiTargeting/Microsoft.Testing.Platform.MSBuild.VSTest.targets +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/buildMultiTargeting/Microsoft.Testing.Platform.MSBuild.VSTest.targets @@ -1,6 +1,7 @@ - + +