-
Notifications
You must be signed in to change notification settings - Fork 1.1k
dotnet test for MTP #49647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
dotnet test for MTP #49647
Conversation
|
||
<Target Name="_MTPBuild" DependsOnTargets="_ComputeTargetFrameworkItems"> | ||
<!-- This target is called by dotnet test for MTP for projects that are multi-targeted (using multiple target frameworks) --> | ||
<Target Name="_MTPTest"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: We should be careful to not regress TestTfmsInParallel
. So maybe this outer _MTPTest
target should also communicate back the TestTfmsInParallel
value to the logger.
@@ -17,7 +17,10 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<VSTestTargets Condition="'$(VSTestTargets)'==''">$(MSBuildExtensionsPath)\Microsoft.TestPlatform.targets</VSTestTargets> | |||
</PropertyGroup> | |||
<Import Condition="Exists('$(VSTestTargets)')" Project="$(VSTestTargets)" /> | |||
<Target Name="_MTPBuild"> | |||
<CallTarget Targets="Build" /> | |||
<Target Name="_MTPTest" DependsOnTargets="ComputeRunArguments" Returns="@(_MTPTestInformation)"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This target should do <CallTarget Targets="Build" Condition="'$(MTPNoBuild)'!='true'" />
<InnerTargets Condition="'$(MTPNoBuild)'!='true'">Build;_MTPTest</InnerTargets> | ||
<InnerTargets Condition="'$(MTPNoBuild)'=='true'">_MTPTest</InnerTargets> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this doesn't really work because CallTarget
below is executed in a different scope and can't see the values set here.
cc @KirillOsenkov as FYI, or if you have any comments. This is still very far from being completed.