Commit e397464
authored
[tests] Enable more tests to run on all 3 runtimes, part 4 (#10591)
This commit expands the test coverage in `BindingBuildTest.cs`
to run binding and application tests across multiple Android runtimes
by parameterizing tests with the `AndroidRuntime` enum. It also
updates test setup logic to properly configure projects for each
runtime and ensures unsupported configurations are skipped.
**Test parameterization and runtime support:**
* All major test methods in `BindingBuildTest.cs` now accept an
`AndroidRuntime runtime` parameter (using `[Values]` or
`[TestCaseSource]`), allowing tests to run against all supported
runtimes.
* Test projects are now configured per-runtime by setting `IsRelease`
according to the runtime (NativeAOT uses Release), and calling
`SetRuntime(runtime)` on each project.
**Test data generation improvements:**
* The static `ClassParseOptions` array is replaced with a
`Get_ClassParseOptions()` method, which dynamically generates test
cases for each `AndroidRuntime` value, ensuring all relevant runtime
combinations are tested.
**Test execution control:**
* All tests now call `IgnoreUnsupportedConfiguration(runtime, release:
isRelease)` at the start, and skip execution if the configuration is
not supported. This prevents failures on unsupported runtime/build
type combinations.1 parent 22e38e1 commit e397464
File tree
1 file changed
+279
-80
lines changed- src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests
1 file changed
+279
-80
lines changed
0 commit comments