You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the only tests around APIs like +[GTMSessionFetcher fetcherWithSessionIdentifier:] and +[GTMSessionUploadFetcher uploadFetcherForSessionIdentifier:] are manual tests.
To test the functionality, you have to manually change #define values like these:
and build, run, kill, and re-launch various test apps.
We should instead:
Create a @protocol to model the session-based logic,
Create a fake implementation for tests, and
Create a real implementation which forwards the UIApplication calls in
This allows writing unit tests for this logic, but we should also make end-to-end tests. For that, we can use XCUITest to install, kill, and restart a test host app.
The text was updated successfully, but these errors were encountered:
Currently, the only tests around APIs like
+[GTMSessionFetcher fetcherWithSessionIdentifier:]
and+[GTMSessionUploadFetcher uploadFetcherForSessionIdentifier:]
are manual tests.To test the functionality, you have to manually change
#define
values like these:gtm-session-fetcher/TestApps/FetcheriOSTestApp/FTAIOSAppDelegate.m
Line 30 in dc9988c
and build, run, kill, and re-launch various test apps.
We should instead:
@protocol
to model the session-based logic,This allows writing unit tests for this logic, but we should also make end-to-end tests. For that, we can use
XCUITest
to install, kill, and restart a test host app.The text was updated successfully, but these errors were encountered: