Skip to content

Commit

Permalink
RunVSTest: Notify MSBuild TerminalLogger that tests are starting (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfederm authored Mar 29, 2024
1 parent 92b330e commit fb0a2ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/RunTests/build/Microsoft.Build.RunVSTest.targets
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@

<!-- Only consider non "dotnet" scenarios sinces those are already covered by Microsoft.Testing.Platform.MSBuild, which is automatically included as a dependency of MSTest.TestAdapter -->
<Target Name="RunVSTest" AfterTargets="Test" Condition="'$(RunVSTest)' != 'false' and '$(IsTestProject)' == 'true' and '$(MSBuildRuntimeType)' != 'Core'">
<!--
This target name is hardcoded in TerminalLogger to mean start of test workload.
This let's terminal logger know that it should show `Testing` in the output,
and not the additional internal details, such as target names.
-->
<CallTarget Targets="_TestRunStart" />

<RunVSTestTask ToolExe="$(VSTestToolExe)"
ToolPath="$(VSTestToolPath)"
TestFileFullPath="$(TargetPath)"
Expand All @@ -35,4 +42,6 @@
VSTestArtifactsProcessingMode="$(VSTestArtifactsProcessingMode)"
VSTestSessionCorrelationId="$(VSTestSessionCorrelationId)" />
</Target>

<Target Name="_TestRunStart" />
</Project>

0 comments on commit fb0a2ba

Please sign in to comment.