-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS][NativeAOT] Stand up testing on devices #19817
Comments
/cc: @jonathanpeppers @simonrozsival |
Regarding:
In order to adapt these tests to execute with NativeAOT, we will need to adapt/change maui/src/TestUtils/src/DeviceTests.Runners/HeadlessRunner/iOS/HeadlessTestRunner.cs Line 13 in c20f10d
XHarness.TestRunners.Xunit test runner. The problem with this type of runners, is that it expects assemblies to be present on disk in order to load them and find relevant test cases. This is not supported by NativeAOT as the managed assemblies are not preserved during deployment.
|
This PR adds an integration test for testing NativeAOT running on iOS by extending the existing `RunOniOS` test method with two new parameters: * `runtimeIdentifier` - string denoting the target runtime identifier i.e., on which platform the test will be executed. Since currently CI only runs these tests on simulators (note: referring to `iossimulator-x64` in the target path below) https://github.com/dotnet/maui/blob/f9a885219953dd67171b0986f9746795fc5fc207/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs#L47 We are passing the same value `iossimulator-x64` in all cases for the time being. * `runtimeVariant` - new enum type - `RuntimeVariant` differentiating runtime variants to run the test with (at the moment supported variants are `Mono` and `NativeAOT`). Contributes to #19817
This PR adds an integration test for testing NativeAOT running on iOS by extending the existing `RunOniOS` test method with two new parameters: * `runtimeIdentifier` - string denoting the target runtime identifier i.e., on which platform the test will be executed. Since currently CI only runs these tests on simulators (note: referring to `iossimulator-x64` in the target path below) https://github.com/dotnet/maui/blob/f9a885219953dd67171b0986f9746795fc5fc207/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs#L47 We are passing the same value `iossimulator-x64` in all cases for the time being. * `runtimeVariant` - new enum type - `RuntimeVariant` differentiating runtime variants to run the test with (at the moment supported variants are `Mono` and `NativeAOT`). Contributes to #19817
Description
With #19194 we started testing NativeAOT iOS support with MAUI on CI.
However, added tests are only testing building MAUI iOS template applications.
In order to have a better test coverage we should stand up running NativeAOT iOS tests on devices as well.
Tasks
This effort should cover at least the following:
Controls.Sample.UITests
- Issue* UI tests are not compatible with NativeAOT #20553Core.DeviceTests.csproj
tests with NativeAOT https://github.com/dotnet/maui/blob/main/src/Core/tests/DeviceTests/Core.DeviceTests.csprojThe text was updated successfully, but these errors were encountered: