xamarin-macios/tests/introspection
Rolf Bjarne Kvinge 770b9c5d27
[tests] Adjust a few introspection checks to work on iOS 11.4.1 (#12668)
I ran into these failures when running on an iOS 11.4.1 device (iPhone 7 / A1778).
2021-09-09 09:00:20 +02:00
..
Mac [tests] Adjust a few introspection checks to work on iOS 11.4.1 (#12668) 2021-09-09 09:00:20 +02:00
dotnet [dotnet] Support SupportedOSPlatformVersion. Fixes #12336. (#12638) 2021-09-08 09:20:05 +02:00
iOS [tests][intro] Move protocol check for QLPreviewReply* to base class (#12596) 2021-08-31 17:27:08 -04:00
ApiAvailabilityTest.cs [introspection] Share the logic for .NET between all platforms. (#12409) 2021-08-13 09:32:56 +02:00
ApiBaseTest.cs [tests][intro] Fix Phase tests on macOS 12 and iOS devices (#12376) 2021-08-06 16:28:04 -04:00
ApiCMAttachmentTest.cs [tests][intro] Fix introspection when running on MacCatalyst 15 (macOS12) (#12403) 2021-08-11 20:05:13 -04:00
ApiClassPtrTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ApiCoreImageFiltersTest.cs [xcode12.2] Initial commit for Xcode 12.2 Beta 3 (#9877) 2020-10-15 12:08:27 -04:00
ApiCtorInitTest.cs [runtime] Add support for toggle refs to CoreCLR. (#11757) 2021-06-02 00:13:49 +02:00
ApiFieldTest.cs [xcode13] Bump PR to Xcode 13 Beta 2 (#12017) 2021-06-28 17:54:52 -04:00
ApiFrameworkTest.cs [CoreWLan] Add XCode13 beta 1 support. (#12103) 2021-07-19 09:02:47 -04:00
ApiPInvokeTest.cs [tests] Remove some ignores for issues that have been fixed. (#12527) 2021-08-25 09:23:30 +02:00
ApiProtocolTest.cs [tests] Adjust a few introspection checks to work on iOS 11.4.1 (#12668) 2021-09-09 09:00:20 +02:00
ApiSelectorTest.cs [tests] Adjust a few introspection checks to work on iOS 11.4.1 (#12668) 2021-09-09 09:00:20 +02:00
ApiSignatureTest.cs [generator][dotnet] Add support for `[Uns|S]upportedOSPlatformAttribute` (#10580) 2021-04-10 11:09:14 -04:00
ApiStructTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ApiTypeTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ApiTypoTest.cs [ThreadNetwork] Add new framework Xcode 13 beta 5. (#12533) 2021-08-26 18:15:31 -04:00
ApiWeakPropertyTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
CoreSelectorTest.cs [xcode12] Introspection-based fixes for Big Sur (#9632) 2020-09-15 08:56:24 -04:00
EnvironmentVariable.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
README.md [tests] Move linker tests from maccore (#69) 2016-05-20 14:07:34 -04:00
xamarin1.png Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00

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