File tree Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 49
49
"/t:Build;ExtractTestClassNames"
50
50
/bl:${{ github.workspace }}/artifacts/log/Debug/BuildTemplatesTests.binlog
51
51
-p:ExtractTestClassNamesForHelix=true
52
- -p:RunHelixTests =true
52
+ -p:PrepareForHelix =true
53
53
-p:ExtractTestClassNamesPrefix=Aspire.Templates.Tests
54
54
-p:InstallBrowsersForPlaywright=false
55
55
Original file line number Diff line number Diff line change @@ -160,8 +160,8 @@ jobs:
160
160
CI : false
161
161
run : >
162
162
${{ env.BUILD_SCRIPT }} -restore -ci -build -projects ${{ env.TEST_PROJECT_PATH }}
163
- /p:RunHelixTests =true
164
- /bl:${{ github.workspace }}/artifacts/log/Debug/RunHelixTests .binlog
163
+ /p:PrepareForHelix =true
164
+ /bl:${{ github.workspace }}/artifacts/log/Debug/PrepareForHelix .binlog
165
165
166
166
# Workaround for bug in Azure Functions Worker SDK. See https://github.com/Azure/azure-functions-dotnet-worker/issues/2969.
167
167
- name : Rebuild for Azure Functions project
Original file line number Diff line number Diff line change 27
27
<!-- See https://learn.microsoft.com/azure/devops/pipelines/build/variables#system-variables -->
28
28
<IsAzdoCIRunner Condition =" '$(IsAzdoCIRunner)' == '' and '$(SYSTEM_TEAMPROJECT)' != '' " >true</IsAzdoCIRunner >
29
29
30
- <IsAzdoHelixRunner Condition =" '$(IsAzdoHelixRunner)' == '' and '$(RunHelixTests )' == 'true' " >true</IsAzdoHelixRunner >
30
+ <IsAzdoHelixRunner Condition =" '$(IsAzdoHelixRunner)' == '' and '$(PrepareForHelix )' == 'true' " >true</IsAzdoHelixRunner >
31
31
</PropertyGroup >
32
32
33
33
<PropertyGroup >
Original file line number Diff line number Diff line change 46
46
-restore -build
47
47
-configuration ${{ parameters.buildConfig }}
48
48
-pack
49
- /p:RunHelixTests =${{ lower(eq(parameters.runHelixTests, 'true')) }}
49
+ /p:PrepareForHelix =${{ lower(eq(parameters.runHelixTests, 'true')) }}
50
50
/bl:${{ parameters.repoLogPath }}/build.binlog
51
51
$(_OfficialBuildIdArgs)
52
52
displayName : Build
Original file line number Diff line number Diff line change 89
89
<ProjectReference Include =" $(PlaygroundSourceDir)withdockerfile/WithDockerfile.AppHost/WithDockerfile.AppHost.csproj" />
90
90
</ItemGroup >
91
91
92
- <ItemGroup Condition =" '$(RunHelixTests )' == 'true'" Label =" Prepare archive dir for helix" >
92
+ <ItemGroup Condition =" '$(PrepareForHelix )' == 'true'" Label =" Prepare archive dir for helix" >
93
93
<None Include =" $(MSBuildProjectDirectory)\**\*" Link =" $(DeployOutsideOfRepoSupportFilesRelativeDir)tests\$(MSBuildProjectName)\%(RecursiveDir)%(FileName)%(Extension)" CopyToOutputDirectory =" PreserveNewest" />
94
94
<None Include =" $(RepoRoot)playground\**\*" Link =" $(DeployOutsideOfRepoSupportFilesRelativeDir)playground\%(RecursiveDir)%(FileName)%(Extension)" CopyToOutputDirectory =" PreserveNewest" />
95
95
<None Include =" $(RepoRoot)src\Aspire.Hosting\Utils\PasswordGenerator.cs" Link =" $(DeployOutsideOfRepoSupportFilesRelativeDir)tests\$(MSBuildProjectName)\PasswordGenerator.cs" CopyToOutputDirectory =" PreserveNewest" />
Original file line number Diff line number Diff line change 11
11
<TestArchiveTestsDir >$(TestArchiveTestsDirForTemplateTests)</TestArchiveTestsDir >
12
12
13
13
<InstallBrowsersForPlaywright Condition =" '$(InstallBrowsersForPlaywright)' == '' and '$(CODESPACES)' == 'true'" >true</InstallBrowsersForPlaywright >
14
- <InstallBrowsersForPlaywright Condition =" '$(InstallBrowsersForPlaywright)' == '' and '$(RunHelixTests )' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'" >true</InstallBrowsersForPlaywright >
14
+ <InstallBrowsersForPlaywright Condition =" '$(InstallBrowsersForPlaywright)' == '' and '$(PrepareForHelix )' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'" >true</InstallBrowsersForPlaywright >
15
15
<InstallBrowsersForPlaywright Condition =" '$(InstallBrowsersForPlaywright)' == '' and '$(OS)' == 'Windows_NT' and '$(ContinuousIntegrationBuild)' != 'true'" >true</InstallBrowsersForPlaywright >
16
16
17
- <ExtractTestClassNamesForHelix Condition =" '$(ContinuousIntegrationBuild)' == 'true' or '$(RunHelixTests )' == 'true'" >true</ExtractTestClassNamesForHelix >
17
+ <ExtractTestClassNamesForHelix Condition =" '$(ContinuousIntegrationBuild)' == 'true' or '$(PrepareForHelix )' == 'true'" >true</ExtractTestClassNamesForHelix >
18
18
<ExtractTestClassNamesPrefix >Aspire.Templates.Tests</ExtractTestClassNamesPrefix >
19
19
20
20
<!--
Original file line number Diff line number Diff line change 9
9
10
10
<DeployRunSettingsFile Condition =" '$(DeployRunSettingsFile)' == ''" >true</DeployRunSettingsFile >
11
11
<!-- Use a separate xunit.runner.json for helix that disables parallel test runs -->
12
- <XunitRunnerJson Condition =" '$(XunitRunnerJson)' == '' and '$(RunHelixTests )' == 'true'" >$(RepoRoot)tests\helix\xunit.runner.json</XunitRunnerJson >
12
+ <XunitRunnerJson Condition =" '$(XunitRunnerJson)' == '' and '$(PrepareForHelix )' == 'true'" >$(RepoRoot)tests\helix\xunit.runner.json</XunitRunnerJson >
13
13
<XunitRunnerJson Condition =" '$(XunitRunnerJson)' == ''" >$(RepositoryEngineeringDir)testing\xunit.runner.json</XunitRunnerJson >
14
14
</PropertyGroup >
15
15
19
19
</ItemGroup >
20
20
21
21
<Target Name =" ZipTestArchive" AfterTargets =" Build"
22
- Condition =" '$(IsTestProject)' == 'true' and '$(RunHelixTests )' == 'true' and '$(RunOnAzdoHelix)' == 'true' and '$(IsTestUtilityProject)' != 'true' and '$(IsCrossTargetingBuild)' != 'true'" >
22
+ Condition =" '$(IsTestProject)' == 'true' and '$(PrepareForHelix )' == 'true' and '$(RunOnAzdoHelix)' == 'true' and '$(IsTestUtilityProject)' != 'true' and '$(IsCrossTargetingBuild)' != 'true'" >
23
23
<Error Condition =" '$(TestArchiveTestsDir)' == ''" Text =" TestArchiveTestsDir property to archive the test folder must be set." />
24
24
<PropertyGroup >
25
25
<TestsArchiveSourceDir Condition =" '$(TestsArchiveSourceDir)' == ''" >$(OutDir)</TestsArchiveSourceDir >
35
35
36
36
<!-- Used for running one helix job per test class -->
37
37
<Target Name =" ExtractTestClassNames"
38
- Condition =" '$(IsTestProject)' == 'true' and '$(ExtractTestClassNamesForHelix)' == 'true' and '$(RunHelixTests )' == 'true' and '$(IsTestUtilityProject)' != 'true'"
38
+ Condition =" '$(IsTestProject)' == 'true' and '$(ExtractTestClassNamesForHelix)' == 'true' and '$(PrepareForHelix )' == 'true' and '$(IsTestUtilityProject)' != 'true'"
39
39
BeforeTargets =" ZipTestArchive" >
40
40
41
41
<Error Condition =" '$(ExtractTestClassNamesPrefix)' == ''"
Original file line number Diff line number Diff line change 37
37
38
38
<PropertyGroup >
39
39
<!-- copy by default only when archiving tests, and for test projects that support running out of repo -->
40
- <DeployOutsideOfRepoSupportFiles Condition =" '$(DeployOutsideOfRepoSupportFiles)' == '' and '$(RunHelixTests )' == 'true' and '$(IsTestProject)' == 'true'" >true</DeployOutsideOfRepoSupportFiles >
40
+ <DeployOutsideOfRepoSupportFiles Condition =" '$(DeployOutsideOfRepoSupportFiles)' == '' and '$(PrepareForHelix )' == 'true' and '$(IsTestProject)' == 'true'" >true</DeployOutsideOfRepoSupportFiles >
41
41
42
42
<IncludeTestPackages Condition =" '$(IncludeTestPackages)' == '' and ('$(IsTestProject)' == 'true' or '$(IsTestUtilityProject)' == 'true')" >true</IncludeTestPackages >
43
43
<GeneratedPackagesVersionsPropsPath Condition =" '$(GeneratedPackagesVersionsPropsPath)' == ''" >$(IntermediateOutputPath)Directory.Packages.Versions.props</GeneratedPackagesVersionsPropsPath >
95
95
96
96
<Target Name =" _UpdateArchiveSourcePath"
97
97
BeforeTargets =" ZipTestArchive"
98
- Condition =" '$(IsTestProject)' == 'true' and '$(RunHelixTests )' == 'true' and '$(DeployOutsideOfRepoSupportFilesRelativeDir)' != ''" >
98
+ Condition =" '$(IsTestProject)' == 'true' and '$(PrepareForHelix )' == 'true' and '$(DeployOutsideOfRepoSupportFilesRelativeDir)' != ''" >
99
99
<PropertyGroup >
100
100
<TestsArchiveSourceDir >$(OutDir)$(DeployOutsideOfRepoSupportFilesRelativeDir)</TestsArchiveSourceDir >
101
101
</PropertyGroup >
You can’t perform that action at this time.
0 commit comments