getsentry / sentry-dotnet

Sentry SDK for .NET
https://docs.sentry.io/platforms/dotnet
MIT License
599 stars 206 forks source link

Experiment - iOS device tests #3708

Closed jamescrosswell closed 3 weeks ago

jamescrosswell commented 1 month ago

This is an experimental branch consisting of one test and with almost all of the code removed.

Mysteriously, the test passes in CI 😕

When I try to run the device tests from this branch locally I get the error:

      <test name="Sentry.Tests.Ben.BlockingDetector.SuppressBlockingDetectionTests.Constructor_SuppressesBlockingDetection" type="Sentry.Tests.Ben.BlockingDetector.SuppressBlockingDetectionTests" method="Constructor_SuppressesBlockingDetection" time="0.0483892" result="Fail">
        <failure exception-type="System.TypeInitializationException">
          <message><![CDATA[System.TypeInitializationException : TypeInitialization_Type, Castle.Proxies.ObjectProxy\n---- System.ExecutionEngineException : Attempting to JIT compile method 'void Castle.Proxies.ObjectProxy:.cctor ()' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.\n]]></message>

The link in that error indicates it shouldn't be possible for these tests to run on iOS, and yet they do 🤯

jamescrosswell commented 3 weeks ago

Fixed by: