Skip to content
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

[Testing] NativeAOT: Stand up UI testing on iOS platforms #20541

Merged
merged 7 commits into from Feb 21, 2024

Conversation

ivanpovazan
Copy link
Member

@ivanpovazan ivanpovazan commented Feb 13, 2024

Description

This PR adds support for running UITests with NativeAOT on iossimulator and enables the tests to run on CI.

Changes

To enable building and running UI tests with NativeAOT the following has been done:

  • Build
    • cake - new argument --runtimevariant which accepts values: Mono and NativeAOT, and sets up building projects with NativeAOT
    • MSBuild - new MSBuild property _UseNativeAot which when set to true will trigger building projects with NativeAOT
    • dotnet-samples cake task - adapted to only compile Controls.Sample.UITests.csproj as the only currently supported sample project
    • uitest-build cake task - adapted to work with NativeAOT
  • CI
    • iOS UITests - job renamed to iOS UITests Mono
    • iOS UITests NativeAOT - new job added

Limitations

Issues fixed

Contributes to: #19817

@ivanpovazan ivanpovazan added the area/testing Unit tests, device tests label Feb 13, 2024
@ivanpovazan ivanpovazan self-assigned this Feb 13, 2024
@ivanpovazan
Copy link
Member Author

/cc: @simonrozsival @jonathanpeppers

@ivanpovazan ivanpovazan changed the title [WIP] NativeAOT: Stand up UI testing [Testing] NativeAOT: Stand up UI testing on iOS platforms Feb 14, 2024
@ivanpovazan ivanpovazan marked this pull request as ready for review February 14, 2024 09:04
@ivanpovazan ivanpovazan requested a review from a team as a code owner February 14, 2024 09:04
@rmarinho
Copy link
Member

/rebase

@ivanpovazan
Copy link
Member Author

UI tests are passing on NativeAOT - https://tfsprodcus3.visualstudio.com/Ad0adf05a-e7d7-4b65-96fe-3f3884d42038/public/_TestManagement/Runs?runId=2568847&_a=runCharts

Other failures don't seem to be related.

@rmarinho rmarinho merged commit 4048556 into dotnet:net9.0 Feb 21, 2024
41 of 47 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/testing Unit tests, device tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants