Skip to content

Can we run unit tests in AOT using TestingPlatform? #3930

@jamescrosswell

Description

@jamescrosswell

See https://dateo-software.de/blog/testing-platform

Problem Statement

At the moment, the only assurance we have that Sentry is AOT compatible comes from the AOT Analysers at build time (none of which produce any warnings at the moment). Anecdotally, we're getting lots of issues related to AOT despite everything being fine from the perspective of the analysers.

This isn't super surprising, given how serialisation works in AOT. You can't possibly know, at build time, what kinds of types people will try to serialise in things like SentryEvent.Extra... so there's no way to build an analyser to solve for this. When it comes to it, we won't ever be able to protect against those kinds of issues with unit tests either, but we could at least verify that all of Sentry's core functionality works when compiling AOT, using all of the types referenced by the Sentry SDK.

Additional references

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions