Skip to content

[TrimmableTypeMap] Update TrimmableTypeMapBuildTests to expect a full successful build #11020

Description

@simonrozsival

Parent issue: #11017

File: src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/TrimmableTypeMapBuildTests.cs

Both existing tests currently use ThrowOnBuildFailure = false with a comment that the build fails downstream because manifest generation was not yet implemented. Now that the trimmable path is complete (manifest, JCW generation, etc.), these tests should be updated to:

  • Remove ThrowOnBuildFailure = false — expect a full successful build
  • Assert that both TypeMap DLLs were generated: _Microsoft.Android.TypeMaps.dll and _Mono.Android.TypeMap.dll
  • Assert that JCW .java files were generated in the typemap output directory
  • The incremental build test (Build_WithTrimmableTypeMap_IncrementalBuild) should already correctly assert that _GenerateJavaStubs is skipped on the second build — just remove the failure tolerance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions