xamarin-macios/tests/introspection
Manuel de la Pena d60cded66e
[PassKit] Fix the intro tests for PassKit on macOS. (#19760)
2024-01-08 11:58:08 -05:00
..
Mac [PassKit] Fix the intro tests for PassKit on macOS. (#19760) 2024-01-08 11:58:08 -05:00
dotnet [Introspection] Fix a number of failing tests. 2023-08-04 11:47:28 -04:00
iOS [Metal] Add support for Xcode15. (#19379) 2023-12-12 17:39:56 -05:00
ApiAvailabilityTest.cs
ApiBaseTest.cs [Introspection] Fix intro skip when the properties are internal. 2023-08-04 11:49:45 -04:00
ApiCMAttachmentTest.cs [Metal] Add support for Xcode15. (#19379) 2023-12-12 17:39:56 -05:00
ApiClassPtrTest.cs
ApiCoreImageFiltersTest.cs
ApiCtorInitTest.cs [PassKit] Add support Xcode15 Beta 7 (#19139) 2023-10-23 13:05:19 -05:00
ApiFieldTest.cs [Introspection] Fix failing tests. 2023-08-04 11:47:29 -04:00
ApiFrameworkTest.cs Auto-format source code 2023-08-04 11:49:45 -04:00
ApiPInvokeTest.cs [net8.0] Merge main into net8.0. 2023-08-14 15:36:54 +02:00
ApiProtocolTest.cs [MetalFX] Add the framework (which was added in Xcode 14) and add xcode 15 support. (#19107) 2023-10-23 10:40:02 -04:00
ApiSelectorTest.cs [CoreImage] Add support for Xcode 15 beta 7. (#18874) 2023-09-04 12:17:28 -04:00
ApiSignatureTest.cs
ApiStructTest.cs
ApiTypeTest.cs
ApiTypoTest.cs [MetalFX] Add the framework (which was added in Xcode 14) and add xcode 15 support. (#19107) 2023-10-23 10:40:02 -04:00
ApiWeakPropertyTest.cs [CoreText] Fix a few nullability issues in CTFontDescriptor. (#19439) 2023-11-21 07:59:13 +01:00
CoreSelectorTest.cs
EnvironmentVariable.cs
README.md
xamarin1.png

README.md

Introspection Tests

Introspection tests are executed on target (both simulator and device for iOS) or a specific version of OSX. The application proceed to analyze itself using:

  • System.Reflection for managed code; and
  • the ObjectiveC runtime library for native code

and compare the results. E.g. if using .NET reflection it can see a binding for a NSBundle type then it should be able to find a native NSBundle type using the ObjC runtime functions. Otherwise an error is raised...

Since the application analyze itself it must contains everything we wish to test. That's why the introspection tests needs to be built with the managed linker disable, i.e. "Don't link".

Pros

  • The tests always tell the truth, which can differ from documentation or header files;

Cons

  • Incomplete - Not everything is encoded in the metadata / executable;
  • Too complete - Not every truth is good to be known (or published), which requires creating special cases in the tests