Skip to content
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 @@ -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</value>
</data>
<data name="DidNotReceiveModuleInfo" xml:space="preserve">
<value>MSBuild extension failed to receive test application information from '{0}'</value>
</data>
<data name="DidNotReceiveRunSummaryInfo" xml:space="preserve">
<value>MSBuild extension failed to receive test run summary from '{0}'</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Skutečná hodnota: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Očekávaná hodnota: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Tatsächlicher Wert: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Erwarteter Wert: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Valor real: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Valor esperado: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Valeur réelle : {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Valeur attendue : {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Valore effettivo: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Valore previsto: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">実際の値: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">想定された値: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">실제 값: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">예상 값: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Wartość rzeczywista: {0}.</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Oczekiwana wartość: {0}.</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Valor real: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Valor esperado: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Действительное значение: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Ожидаемое значение: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">Gerçek değer: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">Beklenen değer: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">实际值: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">预期的值: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<target state="translated">實際值: {0}</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveModuleInfo">
<source>MSBuild extension failed to receive test application information from '{0}'</source>
<target state="new">MSBuild extension failed to receive test application information from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="DidNotReceiveRunSummaryInfo">
<source>MSBuild extension failed to receive test run summary from '{0}'</source>
<target state="new">MSBuild extension failed to receive test run summary from '{0}'</target>
<note />
</trans-unit>
<trans-unit id="ExpectedValue">
<source>Expected value: {0}</source>
<target state="translated">預期的值: {0}</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -514,6 +527,7 @@ private Task<IResponse> HandleRequestAsync(IRequest request)
Log.LogMessage(MessageImportance.High, summary);
}

_receivedRunSummaryInfoRequest = true;
return Task.FromResult<IResponse>(VoidResponse.CachedInstance);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<!-- Override VSTest target for single tfm -->
<Target Name="VSTest">
<CallTarget Targets="InvokeTestingPlatform" />
<Error Text="'TestingPlatformDotnetTestSupport' was set to true, but the project did not opt-in MTP. If this is not a test project, set 'IsTestingPlatformApplication' to false. For more information, see https://aka.ms/migrate-vstest-mtp" Condition="'$(IsTestingPlatformApplication)' != 'true'" />
<CallTarget Targets="InvokeTestingPlatform" Condition="'$(IsTestingPlatformApplication)' == 'true'" />
</Target>
</Project>
Loading