-
Notifications
You must be signed in to change notification settings - Fork 564
Enable more tests to run on all 3 runtimes, part 12 #10632
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
Conversation
1b1c798 to
32bd8e8
Compare
769988d to
8c71aeb
Compare
8c71aeb to
e09ef40
Compare
jonathanpeppers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reran the WearOS 1 tests, but I wonder if they are failing because the Android Wear emulator is 32-bit?
It's probably ok if they pass on rerun.
There was a problem hiding this 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 pull request extends runtime testing capabilities by enabling more tests to run across all three Android runtimes (MonoVM, CoreCLR, and NativeAOT). The changes are part 12 of a larger effort to ensure comprehensive runtime test coverage.
Key Changes:
- Refactored test parameters to use
[Values] AndroidRuntimeinstead of hardcoded runtime values, enabling tests to run with all available runtimes - Converted static test case arrays to dynamic test case generators that iterate through runtime enumerations
- Added NativeAOT-specific handling for file paths and test assertions, with appropriate ignore conditions for currently unsupported scenarios
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs | Extended ApplicationRunsWithoutDebugger, ClassLibraryMainLauncherRuns, CustomApplicationRunsWithDebuggerAndBreaks, and ApplicationRunsWithDebuggerAndBreaks tests to support all runtimes; converted static test case arrays to dynamic generators; added NativeAOT-specific ignore conditions with detailed TODO comments |
| tests/MSBuildDeviceIntegration/Tests/BundleToolTests.cs | Updated fixture arguments to iterate through all runtime values using Enum.GetValues; added NativeAOT-specific file expectations for libUnnamedProject.so in bundle tests |
| tests/MSBuildDeviceIntegration/Tests/BundleToolNoAbiSplitTests.cs | Converted from individual [TestFixture] attributes to [TestFixtureSource] for dynamic runtime enumeration; added NativeAOT-specific handling for ApplicationConfig checks and environment file gathering; added test ignore for NativeAOT InvalidCastException |
| src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/EnvironmentHelper.cs | Added runtime parameter to GatherEnvironmentFiles method with CoreCLR default for backward compatibility; implemented NativeAOT-specific path handling using MonoAndroidHelper.AbiToRid for RID-prefixed directories |
No description provided.