Liftric/cognito-idp

iOS integration tests

gaebel opened this issue · 3 comments

Think about temporary solution for iOS testing as long as the test target (klib) is not able to execute ktor on main thread: you are either stuck in mutation exception due to frozen thread or endless blocking.

Meanwhile it's possible. The URLSession SSL trust verification doesn't work, though.

I'm not sure if this needs to get tested under iOS. The integration tests are mainly there to test if the requests succeed, if this works in Android it should also work in iOS (otherwise it would be an issue of Ktor). One case would be to catch mutation exceptions (happened twice), this can be avoided with manually verifying the iOS implementation before push though. Maybe just one test to check if the AuthHandler can fire requests in an iOS host app? What do you think @benjohnde?

If this already happened twice, some automated tests are definitely in order, if possible :)