Skip to content

Add RunOnAndroid_MauiNativeAOT integration test#34360

Open
sbomer wants to merge 2 commits intodotnet:mainfrom
sbomer:naotTest
Open

Add RunOnAndroid_MauiNativeAOT integration test#34360
sbomer wants to merge 2 commits intodotnet:mainfrom
sbomer:naotTest

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Mar 6, 2026

Add a test that builds a NativeAOT-compiled MAUI app for Android, deploys it to an emulator, and verifies it launches successfully using XHarness. This mirrors the existing RunOniOS_MauiNativeAOT test for iOS and runs in the existing mac_runandroid_tests CI lane.

Add a test that builds a NativeAOT-compiled MAUI app for Android,
deploys it to an emulator, and verifies it launches successfully
using XHarness. This mirrors the existing RunOniOS_MauiNativeAOT
test for iOS and runs in the existing mac_runandroid_tests CI lane.
Copilot AI review requested due to automatic review settings March 6, 2026 18:56
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 34360

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 34360"

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new integration test RunOnAndroid_MauiNativeAOT that builds a NativeAOT-compiled MAUI app for Android, installs it on an emulator, and verifies it launches successfully using XHarness. It mirrors the existing RunOniOS_MauiNativeAOT test in AppleTemplateTests.cs and will automatically be picked up by the existing mac_runandroid_tests CI lane via the class-level [Trait("Category", "RunOnAndroid")] attribute.

Changes:

  • New [Fact] test RunOnAndroid_MauiNativeAOT added to AndroidTemplateTests, configuring NativeAOT-specific MSBuild properties (including NDK path, ABI-aware RID selection, and TargetFrameworks restriction to android), then building/installing via the Install target and running the app with XHarness.

…ateTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants