theappbusiness / TABTestKit

Library designed to make writing and maintaining automated tests for iOS applications. This includes automation of bio-metrics and controlling of mock servers
MIT License
59 stars 13 forks source link

Add a test for relaunching the app #79

Closed KaneCheshire closed 4 years ago

KaneCheshire commented 4 years ago

Since a bug was fixed in #75 about the background state not working correctly in iOS 13 (at least in the sim) it would have been nice to catch that earlier with a test rather than in someone's project, so I think we just need one of the tests to relaunch the app to avoid a regression.

annapiktas commented 4 years ago

Note: .runningBackgroundSuspended doesn't happen from iOS 13 locally on my machine on Xcode 11.4.1 as per article but on Travis it doesn't seem to happen from iOS 12(possibly 12.4) on Xcode 10.3 The issue doesn't seem to be linked to Swift version, neither extending the timeout to 3 minutes on Travis solves the issue. However when.runningBackground process is active the CPU goes down to zero on Xcode Instruments so it looks like the background processes get suspended somehow.