Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0468d83
Set up example app for UI automation testing
mdmathias Apr 19, 2022
f5f7ce7
Add UI test to DaysUntilBirthday sample app
mdmathias Apr 21, 2022
9e0e464
Delete unused sample app and update workflow
mdmathias Apr 21, 2022
297498b
Update workflow to use DaysUntilBirthday.xcodeproj
mdmathias Apr 21, 2022
0c23a93
Use the correct build command
mdmathias Apr 21, 2022
9ce227b
Update UI test timeout
mdmathias Apr 21, 2022
31bf98f
Add some testing for a test config with secrets
mdmathias Apr 22, 2022
0c6c8e2
Remove credentials config
mdmathias Apr 22, 2022
adfa93a
Update .gitignore
mdmathias Apr 22, 2022
c2148e8
Remove config
mdmathias Apr 22, 2022
c08c440
Add plist for testing
mdmathias Apr 22, 2022
80a29e6
Add test to ensure UI testing bundle is not nil
mdmathias Apr 22, 2022
1e44722
Update workflow
mdmathias Apr 22, 2022
509bdae
Fix typo in path for config
mdmathias Apr 22, 2022
a831403
Update sample readme for integration testing
mdmathias Apr 22, 2022
933297f
Update workflow to use secrets
mdmathias Apr 22, 2022
aa6ee79
Update UI automatic test flow to use test credentials
mdmathias Apr 29, 2022
a3dbb80
Remove sanity check test for GH secrets
mdmathias Apr 29, 2022
b0557b7
Try using disconnect to reset for each test run
mdmathias Apr 29, 2022
7f102cd
Use the correct label for the disconnect button
mdmathias Apr 29, 2022
f8d2513
Update UI tests to detect first or existing sign in
mdmathias Apr 29, 2022
9d9bac4
Update comments
mdmathias Apr 29, 2022
90cf2b9
Fix project file
mdmathias Jun 11, 2022
c7c9b9e
Add space to expected text
mdmathias Jun 11, 2022
f82f77e
List schemes
mdmathias Jun 11, 2022
18d79f4
Add DaysUntilBirthday iOS scheme
mdmathias Jun 11, 2022
8185e9c
Do not echo schemes
mdmathias Jun 11, 2022
a6fb9ee
Add test for env variable
mdmathias Jun 14, 2022
f6bfa6d
Add FOO_BAR to xcodebuild call for integration test
mdmathias Jun 14, 2022
94864e2
Remove spaces
mdmathias Jun 14, 2022
5573a70
Test FOO_BAR
mdmathias Jun 14, 2022
cde9010
Add env in the right spot
mdmathias Jun 14, 2022
4b4af46
Update instructions
mdmathias Jun 14, 2022
34d26b2
Remove space
mdmathias Jun 15, 2022
9ba5ca3
Add scheme and update in tests.yml
mdmathias Jun 29, 2022
03fc4af
Update scheme names
mdmathias Jun 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,33 @@ jobs:
-sdk ${{ matrix.sdk }} \
-destination ${{ matrix.destination }} \
test-without-building

swift-button-functional-test:
runs-on: macOS-latest
defaults:
run:
working-directory: Samples/Swift/DaysUntilBirthday
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build test target for Google Sign-in button for Swift
run: |
xcodebuild \
-project DaysUntilBirthday.xcodeproj \
build-for-testing \
-scheme DaysUntilBirthday\ \(iOS\) \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 11'
- name: Run test target for Google Sign-in button for Swift
env:
EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }}
PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }}
run: |
xcodebuild \
-project DaysUntilBirthday.xcodeproj \
test-without-building \
-scheme DaysUntilBirthday\ \(iOS\) \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 11' \
EMAIL_SECRET=$EMAIL_SECRET \
PASSWORD_SECRET=$PASSWORD_SECRET
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*.xcworkspace/
project.xcworkspace/
xcuserdata/
Credentials.xcconfig

# CocoaPods
Pods/
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1330"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7345ACFE2703D9470020AFB1"
BuildableName = "DaysUntilBirthday (iOS).app"
BlueprintName = "DaysUntilBirthday (iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "NO">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "73508EC42811BD9C00ED7FB7"
BuildableName = "DaysUntilBirthdayUITests (iOS).xctest"
BlueprintName = "DaysUntilBirthdayUITests (iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</MacroExpansion>
<EnvironmentVariables>
<EnvironmentVariable
key = "EMAIL_SECRET"
value = "$(EMAIL_SECRET)"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "PASSWORD_SECRET"
value = "$(PASSWORD_SECRET)"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "73508EC42811BD9C00ED7FB7"
BuildableName = "DaysUntilBirthdayUITests (iOS).xctest"
BlueprintName = "DaysUntilBirthdayUITests (iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7345ACFE2703D9470020AFB1"
BuildableName = "DaysUntilBirthday (iOS).app"
BlueprintName = "DaysUntilBirthday (iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7345ACFE2703D9470020AFB1"
BuildableName = "DaysUntilBirthday (iOS).app"
BlueprintName = "DaysUntilBirthday (iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1330"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FE71737F27ECFAF400910319"
BuildableName = "DaysUntilBirthday (macOS).app"
BlueprintName = "DaysUntilBirthday (macOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FE71737F27ECFAF400910319"
BuildableName = "DaysUntilBirthday (macOS).app"
BlueprintName = "DaysUntilBirthday (macOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FE71737F27ECFAF400910319"
BuildableName = "DaysUntilBirthday (macOS).app"
BlueprintName = "DaysUntilBirthday (macOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7345ACFE2703D9470020AFB1"
BuildableName = "DaysUntilBirthday(iOS).app"
BlueprintName = "DaysUntilBirthday(iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7345ACFE2703D9470020AFB1"
BuildableName = "DaysUntilBirthday(iOS).app"
BlueprintName = "DaysUntilBirthday(iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7345ACFE2703D9470020AFB1"
BuildableName = "DaysUntilBirthday(iOS).app"
BlueprintName = "DaysUntilBirthday(iOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FE71737F27ECFAF400910319"
BuildableName = "DaysUntilBirthday(macOS).app"
BlueprintName = "DaysUntilBirthday(macOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FE71737F27ECFAF400910319"
BuildableName = "DaysUntilBirthday(macOS).app"
BlueprintName = "DaysUntilBirthday(macOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FE71737F27ECFAF400910319"
BuildableName = "DaysUntilBirthday(macOS).app"
BlueprintName = "DaysUntilBirthday(macOS)"
ReferencedContainer = "container:DaysUntilBirthday.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading