8ef77344bc
Added more types to INIntentResolutionResultTests Partial Test log: [Runner executing: Run Everything] [MonoTouch Version: 10.3.99] [Assembly: Xamarin.WatchOS.dll (32 bits)] [GC: sgen] [Apple Watch: watchOS v3.2] [Device Name: iMacAlex] [Device Locale: en_US] [Device Date/Time: 2/13/2017 11:45:10 PM] [Bundle: com.xamarin.monotouch-test.watchkitapp.watchkitextension] monotouchtest.dll INIntentResolutionResultTests [PASS] INIntentResolutionResultTests.INBillPayeeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INBillTypeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INBooleanResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INCallRecordTypeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INCarAirCirculationModeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INCarAudioSourceResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INCarDefrosterResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INCarSeatResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INCarSignalOptionsResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INCurrencyAmountResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INDateComponentsRangeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INDateComponentsResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INDoubleResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INIntegerResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INIntentResolutionResultIsAbstractTest [PASS] INIntentResolutionResultTests.INMessageAttributeOptionsResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INMessageAttributeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INPaymentAccountResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INPaymentAmountResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INPaymentStatusResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INPersonResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INPlacemarkResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INRadioTypeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INRelativeReferenceResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INRelativeSettingResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INSpeakableStringResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INStringResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INTemperatureResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INWorkoutGoalUnitTypeResolutionResultPropertyTest [PASS] INIntentResolutionResultTests.INWorkoutLocationTypeResolutionResultPropertyTest INIntentResolutionResultTests : 20 ms * [Intent] Workaround for introspection tests Right now introspection tests fail randomly on two test targets iOSApiCtorInitTest and iOSApiSelectorTest so we are temporary removing them from the test suite with the hope to have them fixed on the next beta |
||
---|---|---|
.. | ||
Mac | ||
iOS | ||
ApiBaseTest.cs | ||
ApiCMAttachmentTest.cs | ||
ApiClassPtrTest.cs | ||
ApiCoreImageFiltersTest.cs | ||
ApiCtorInitTest.cs | ||
ApiFieldTest.cs | ||
ApiPInvokeTest.cs | ||
ApiProtocolTest.cs | ||
ApiSelectorTest.cs | ||
ApiSignatureTest.cs | ||
ApiStructTest.cs | ||
ApiTypoTest.cs | ||
ApiWeakPropertyTest.cs | ||
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