-
Notifications
You must be signed in to change notification settings - Fork 379
Add common arcade test targets #1704
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
Changes from 7 commits
2b1c5ee
934eccc
6fd6013
6e5985d
33210a6
4b63058
9bdcdbf
5da266f
5d94a7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ | |
| $(TestDependsOn); | ||
| GenerateRunScript; | ||
| RunTests; | ||
| ArchiveTestBuild; | ||
| </TestDependsOn> | ||
| </PropertyGroup> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,9 +63,10 @@ | |
| </Target> | ||
|
|
||
| <!-- Archive test binaries along with supporting files. --> | ||
| <Target Name="ArchiveTestBuild" | ||
| DependsOnTargets="GenerateRunScript" | ||
| Condition="'$(ArchiveTests)' == 'true'"> | ||
| <Target Name="ArchiveTests" | ||
| Condition="'$(ArchiveTests)' == 'true' OR $(MSBuildProjectName.EndsWith('.$(ArchiveTests)'))" | ||
| AfterTargets="PrepareForRun" | ||
safern marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| DependsOnTargets="GenerateRunScript"> | ||
|
|
||
| <Error Condition="'$(TestArchiveTestsDir)' == ''" Text="TestArchiveTestsDir property to archive the test folder must be set." /> | ||
|
|
||
|
|
@@ -82,6 +83,8 @@ | |
| </Target> | ||
|
|
||
| <Target Name="GenerateRunScript" | ||
| Inputs="unused" | ||
| Outputs="$(RunScriptOutputPath)" | ||
|
||
| DependsOnTargets="$(GenerateRunScriptDependsOn)"> | ||
|
|
||
| <PropertyGroup> | ||
|
|
@@ -171,19 +174,15 @@ | |
| <Message Text="ValidateTestPlatform found TargetOS of [$(TargetOS)]." Importance="Low" /> | ||
|
|
||
| <Message Condition="'%(UnsupportedPlatformsItems.Identity)' == '$(TargetOS)'" | ||
| Text="Skipping tests in $(AssemblyName) because it is not supported on $(TargetOS)" /> | ||
| Text="Skipping tests in $(AssemblyName) because it is not supported on $(TargetOS)" /> | ||
|
|
||
| <Message Condition="'$(ConfigurationErrorMsg)' != ''" | ||
| Text="Skipping tests in $(AssemblyName) because there is no configuration compatible with the current BuildConfiguration." /> | ||
| Text="Skipping tests in $(AssemblyName) because there is no configuration compatible with the current BuildConfiguration." /> | ||
|
|
||
| </Target> | ||
|
|
||
| <!-- | ||
| SkipTests is a global property used in CI runs. Skips the test execution but | ||
| still generates the test execution script and archives the test dir for Helix consumption. | ||
| --> | ||
| <Target Name="RunTests" | ||
| Condition="'$(SkipTests)' != 'true' OR '$(TestDisabled)' == 'true'" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting that this was inverted before. No-one was using it?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I freaked out when I saw that condition 🤐
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No idea, but will follow-up on that one. |
||
| Condition="'$(TestDisabled)' != 'true'" | ||
| DependsOnTargets="$(RunTestsDependsOn)" | ||
| Inputs="@(RunTestsInputs)" | ||
| Outputs="@(RunTestsOutputs)"> | ||
|
|
@@ -216,11 +215,6 @@ | |
|
|
||
| </Target> | ||
|
|
||
| <!-- Main test targets --> | ||
| <Target Name="Test" DependsOnTargets="$(TestDependsOn)" Condition="'$(DisableTestTargets)' != 'true'" /> | ||
| <Target Name="BuildAndTest" DependsOnTargets="Build;Test" /> | ||
| <Target Name="RebuildAndTest" DependsOnTargets="Rebuild;Test" /> | ||
|
|
||
| <Import Condition="'$(BuildingUAPVertical)' == 'true'" Project="$(MSBuildThisFileDirectory)Core.uap.targets" /> | ||
|
|
||
| <!-- | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.