|
|
7 months ago | |
|---|---|---|
| .. | ||
| DaysUntilBirthday.xcodeproj | 3 years ago | |
| DaysUntilBirthdayForPod.xcodeproj | 2 years ago | |
| DaysUntilBirthdayUITests(iOS) | 7 months ago | |
| Shared | 7 months ago | |
| iOS | 3 years ago | |
| macOS | 10 months ago | |
| Podfile | 2 years ago | |
| README.md | 7 months ago | |
In the ../Samples/Swift/DaysUntilBirthday/ folder, run the following
CocoaPods command.
pod install
Open the generated workspace:
open DaysUntilBirthdayForPod.xcworkspace
Run the DaysUntilBirthdayForPod (iOS) or DaysUntilBirthdayForPod (macOS)target.
In the ../Samples/Swift/DaysUntilBirthday/ folder, open the project:
open DaysUntilBirthday.xcodeproj
Run the DaysUntilBirthday (iOS) or DaysUntilBirthday (macOS) target.
We run integration tests on the DaysUntilBirthday(iOS) sample app.
These tests attempt to login via Google Sign-in, and so they need an email and
a password.
The email and password that we use are defined as
secrets
on our GitHub repo, and we retrieve these from the workflow environment.
When run locally, both the email and password need to be passed to xcodebuild.
In Xcode, you can add arguments by selecting "Edit Scheme > Run > Environment Variables", and
replace the variables with your test account. Alternatively, edit Credential.swift directly.
WARNING: Don't check these into the repo!
From the command line, you can do this as arguments:
xcodebuild <other args> EMAIL_SECRET=... PASSWORD_SECRET=....
For Googlers, refer to CSI internal Workflow documentation for how to access these values, or access them via the repo's Secrets.