|
41 | 41 | </ItemGroup> |
42 | 42 |
|
43 | 43 | <ItemGroup> |
44 | | - <XUnitV3Project Include="$(RepoRoot)/test/**/*.csproj"/> |
45 | | - <XUnitV3Project Include="$(RepoRoot)/test/**/*.fsproj"/> |
46 | | - <XUnitV3Project Remove="$(RepoRoot)/test/EFCore.Specification.Tests/*.csproj"/> |
47 | | - <XUnitV3Project Remove="$(RepoRoot)/test/EFCore.AspNet.Specification.Tests/*.csproj"/> |
48 | | - <XUnitV3Project Remove="$(RepoRoot)/test/EFCore.Relational.Specification.Tests/*.csproj"/> |
| 44 | + <MTPProject Include="$(RepoRoot)/test/**/*.csproj"/> |
| 45 | + <MTPProject Include="$(RepoRoot)/test/**/*.fsproj"/> |
| 46 | + <MTPProject Remove="$(RepoRoot)/test/EFCore.Specification.Tests/*.csproj"/> |
| 47 | + <MTPProject Remove="$(RepoRoot)/test/EFCore.AspNet.Specification.Tests/*.csproj"/> |
| 48 | + <MTPProject Remove="$(RepoRoot)/test/EFCore.Relational.Specification.Tests/*.csproj"/> |
49 | 49 | <!-- The trimming and NativeAOT test projects are console programs --> |
50 | | - <XUnitV3Project Remove="$(RepoRoot)/test/EFCore.TrimmingTests/*.csproj"/> |
51 | | - <XUnitV3Project Remove="$(RepoRoot)/test/EFCore.NativeAotTests/*.csproj"/> |
| 50 | + <MTPProject Remove="$(RepoRoot)/test/EFCore.TrimmingTests/*.csproj"/> |
| 51 | + <MTPProject Remove="$(RepoRoot)/test/EFCore.NativeAotTests/*.csproj"/> |
52 | 52 | <!-- API baseline tests require source files and cannot run in Helix --> |
53 | | - <XUnitV3Project Remove="$(RepoRoot)/test/EFCore.ApiBaseline.Tests/*.csproj"/> |
| 53 | + <MTPProject Remove="$(RepoRoot)/test/EFCore.ApiBaseline.Tests/*.csproj"/> |
54 | 54 | </ItemGroup> |
55 | 55 |
|
56 | 56 | <!-- Work-around for https://github.com/dotnet/runtime/issues/70758 --> |
57 | 57 | <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`OSX`))'"> |
58 | | - <XUnitV3Project Update="$(RepoRoot)/test/EFCore.InMemory.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.Sqlite.FunctionalTests/*.csproj;$(RepoRoot)/test/ef.Tests/*.csproj"> |
| 58 | + <MTPProject Update="$(RepoRoot)/test/EFCore.InMemory.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.Sqlite.FunctionalTests/*.csproj;$(RepoRoot)/test/ef.Tests/*.csproj"> |
59 | 59 | <PreCommands>$(PreCommands); export COMPlus_EnableWriteXorExecute=0</PreCommands> |
60 | | - </XUnitV3Project> |
| 60 | + </MTPProject> |
61 | 61 | </ItemGroup> |
62 | 62 |
|
63 | 63 | <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`Windows.10.Amd64`))'"> |
64 | | - <XUnitV3Project Remove="$(CosmosTests)"/> |
65 | | - <XUnitV3Project Remove="$(SqlServerTests)"/> |
66 | | - <XUnitV3Project Update="@(XUnitV3Project)"> |
| 64 | + <MTPProject Remove="$(CosmosTests)"/> |
| 65 | + <MTPProject Remove="$(SqlServerTests)"/> |
| 66 | + <MTPProject Update="@(MTPProject)"> |
67 | 67 | <PreCommands>$(PreCommands); set "Test__SqlServer__DefaultConnection=Data Source="</PreCommands> |
68 | | - </XUnitV3Project> |
| 68 | + </MTPProject> |
69 | 69 | </ItemGroup> |
70 | 70 |
|
71 | 71 | <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`Windows.11.Arm64`))'"> |
72 | | - <XUnitV3Project Remove="$(SqlServerTests)"/> |
73 | | - <XUnitV3Project Remove="$(CosmosTests)"/> |
74 | | - <XUnitV3Project Update="@(XUnitV3Project)"> |
| 72 | + <MTPProject Remove="$(SqlServerTests)"/> |
| 73 | + <MTPProject Remove="$(CosmosTests)"/> |
| 74 | + <MTPProject Update="@(MTPProject)"> |
75 | 75 | <PreCommands>$(PreCommands); set "Test__SqlServer__DefaultConnection=Data Source="</PreCommands> |
76 | | - </XUnitV3Project> |
| 76 | + </MTPProject> |
77 | 77 | </ItemGroup> |
78 | 78 |
|
79 | 79 | <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`Windows.11.Amd64.Client`))'"> |
80 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.csproj"/> |
81 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.fsproj"/> |
82 | | - <XUnitV3Project Include="$(SqlServerTests)"> |
| 80 | + <MTPProject Remove="$(RepoRoot)/test/**/*.csproj"/> |
| 81 | + <MTPProject Remove="$(RepoRoot)/test/**/*.fsproj"/> |
| 82 | + <MTPProject Include="$(SqlServerTests)"> |
83 | 83 | <PreCommands>$(PreCommands); SqlLocalDB start</PreCommands> |
84 | | - </XUnitV3Project> |
| 84 | + </MTPProject> |
85 | 85 | </ItemGroup> |
86 | 86 |
|
87 | 87 | <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`Windows.Server2025.Amd64`))'"> |
88 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.csproj"/> |
89 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.fsproj"/> |
90 | | - <XUnitV3Project Include="$(CosmosTests)"> |
| 88 | + <MTPProject Remove="$(RepoRoot)/test/**/*.csproj"/> |
| 89 | + <MTPProject Remove="$(RepoRoot)/test/**/*.fsproj"/> |
| 90 | + <MTPProject Include="$(CosmosTests)"> |
91 | 91 | <PreCommands>$(PreCommands); call %HELIX_CORRELATION_PAYLOAD%\testing\WaitCosmosEmulator.cmd; set Test__Cosmos__DefaultConnection=https://localhost:8081; set Test__Cosmos__SkipConnectionCheck=true</PreCommands> |
92 | | - </XUnitV3Project> |
| 92 | + </MTPProject> |
93 | 93 | </ItemGroup> |
94 | 94 |
|
95 | 95 | <!-- Start SqlServer instance for test projects which uses SqlServer on docker. Only run SqlServer tests. --> |
96 | 96 | <ItemGroup Condition = "'$(HelixTargetQueue.Contains(`helix-sqlserver`))'"> |
97 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.csproj"/> |
98 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.fsproj"/> |
99 | | - <XUnitV3Project Include="$(SqlServerTests)"> |
| 97 | + <MTPProject Remove="$(RepoRoot)/test/**/*.csproj"/> |
| 98 | + <MTPProject Remove="$(RepoRoot)/test/**/*.fsproj"/> |
| 99 | + <MTPProject Include="$(SqlServerTests)"> |
100 | 100 | <PreCommands>$(PreCommands); export MSSQL_SA_PASSWORD=$(MSSQL_SA_PASSWORD); export Test__SqlServer__DefaultConnection="Server=localhost;;Database=master;;User=sa;;Password=$(MSSQL_SA_PASSWORD);;Connect Timeout=60;;ConnectRetryCount=0;;TrustServerCertificate=True"; /opt/mssql/bin/sqlservr --accept-eula &; sleep 120; </PreCommands> |
101 | | - </XUnitV3Project> |
| 101 | + </MTPProject> |
102 | 102 | </ItemGroup> |
103 | 103 |
|
104 | 104 | <!-- Run Cosmos tests on Ubuntu with Docker support (testcontainer auto-starts the emulator) --> |
105 | 105 | <ItemGroup Condition = "'$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.XL.Open' OR '$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.XL'"> |
106 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.csproj"/> |
107 | | - <XUnitV3Project Remove="$(RepoRoot)/test/**/*.fsproj"/> |
108 | | - <XUnitV3Project Include="$(CosmosTests)"/> |
| 106 | + <MTPProject Remove="$(RepoRoot)/test/**/*.csproj"/> |
| 107 | + <MTPProject Remove="$(RepoRoot)/test/**/*.fsproj"/> |
| 108 | + <MTPProject Include="$(CosmosTests)"/> |
109 | 109 | </ItemGroup> |
110 | 110 |
|
111 | 111 | <!-- Run tests that don't need SqlServer or Cosmos on bare Ubuntu --> |
112 | 112 | <ItemGroup Condition = "'$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.Open' OR '$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64'"> |
113 | | - <XUnitV3Project Remove="$(SqlServerTests)"/> |
114 | | - <XUnitV3Project Remove="$(CosmosTests)"/> |
| 113 | + <MTPProject Remove="$(SqlServerTests)"/> |
| 114 | + <MTPProject Remove="$(CosmosTests)"/> |
115 | 115 | </ItemGroup> |
116 | 116 |
|
117 | 117 | <!-- Remove test projects which require SqlServer or Cosmos from OSX --> |
118 | 118 | <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`OSX`))'"> |
119 | | - <XUnitV3Project Remove="$(SqlServerTests)"/> |
120 | | - <XUnitV3Project Remove="$(CosmosTests)"/> |
| 119 | + <MTPProject Remove="$(SqlServerTests)"/> |
| 120 | + <MTPProject Remove="$(CosmosTests)"/> |
121 | 121 | </ItemGroup> |
122 | 122 |
|
123 | 123 | <!-- |
124 | 124 | Skip tests tagged with the "failing" category. Microsoft.DotNet.XUnitV3Extensions attributes |
125 | 125 | such as [ConditionalClass]/[ConditionalAssembly] add `category=failing` to tests whose |
126 | 126 | condition evaluates to false; this filter is what actually skips them at the runner. |
127 | 127 |
|
128 | | - This must run AFTER any per-queue ItemGroup that re-Includes XUnitV3Project items. |
| 128 | + This must run AFTER any per-queue ItemGroup that re-Includes MTPProject items. |
129 | 129 | --> |
130 | 130 | <ItemGroup> |
131 | | - <XUnitV3Project Update="@(XUnitV3Project)"> |
| 131 | + <MTPProject Update="@(MTPProject)"> |
132 | 132 | <Arguments>$(XUnitV3Arguments) --filter-not-trait category=failing --ignore-exit-code 8</Arguments> |
133 | | - </XUnitV3Project> |
| 133 | + </MTPProject> |
134 | 134 | </ItemGroup> |
135 | 135 |
|
136 | 136 | <PropertyGroup> |
|
0 commit comments