diff options
| author | Emīls <emils@mullvad.net> | 2023-07-21 15:15:57 +0200 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2023-07-21 15:15:57 +0200 |
| commit | 0623b3e256f15bcabfcc114a063221480ed02183 (patch) | |
| tree | 8ca910950642b841b0071f17defe23770d3b942c | |
| parent | e2b3bcfef68d2642599db1e51790d4f194bfa65a (diff) | |
| parent | 4ba259decbad199dc5a9706d1c6b3df1b8dda7a0 (diff) | |
| download | mullvadvpn-0623b3e256f15bcabfcc114a063221480ed02183.tar.xz mullvadvpn-0623b3e256f15bcabfcc114a063221480ed02183.zip | |
Merge branch 'fix-mullvadvpnscreenshot-tests-ios-177'
| -rw-r--r-- | .github/workflows/ios.yml | 1 | ||||
| -rw-r--r-- | ios/MullvadVPN.xcodeproj/project.pbxproj | 19 | ||||
| -rw-r--r-- | ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme | 11 | ||||
| -rw-r--r-- | ios/TestPlans/MullvadVPNApp.xctestplan | 54 | ||||
| -rw-r--r-- | ios/TestPlans/MullvadVPNCI.xctestplan | 61 | ||||
| -rwxr-xr-x | ios/build.sh | 1 |
6 files changed, 143 insertions, 4 deletions
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index b58870edb4..aa82aa450b 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -6,6 +6,7 @@ on: - .github/workflows/ios.yml - ios/.swiftformat - ios/**/*.swift + - ios/**/*.xctestplan workflow_dispatch: jobs: check-formatting: diff --git a/ios/MullvadVPN.xcodeproj/project.pbxproj b/ios/MullvadVPN.xcodeproj/project.pbxproj index 8c92325d84..0b41c08aba 100644 --- a/ios/MullvadVPN.xcodeproj/project.pbxproj +++ b/ios/MullvadVPN.xcodeproj/project.pbxproj @@ -251,7 +251,6 @@ 58B26E282943527300D5980C /* SystemNotificationProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B26E272943527300D5980C /* SystemNotificationProvider.swift */; }; 58B26E2A2943545A00D5980C /* NotificationManagerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B26E292943545A00D5980C /* NotificationManagerDelegate.swift */; }; 58B43C1925F77DB60002C8C3 /* TunnelControlView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B43C1825F77DB60002C8C3 /* TunnelControlView.swift */; }; - 58B8644529C7971B005E107C /* InputTextFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 582AE30F2440A6CA00E6733A /* InputTextFormatter.swift */; }; 58B8644629C7972F005E107C /* CustomDateComponentsFormatting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5896AE83246D5889005B36CB /* CustomDateComponentsFormatting.swift */; }; 58B93A1326C3F13600A55733 /* TunnelState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B93A1226C3F13600A55733 /* TunnelState.swift */; }; 58B993B12608A34500BA7811 /* LoginContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B993B02608A34500BA7811 /* LoginContentView.swift */; }; @@ -396,6 +395,7 @@ 7A7AD28D29DC677800480EF1 /* FirstTimeLaunch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A7AD28C29DC677800480EF1 /* FirstTimeLaunch.swift */; }; 7A7AD28F29DEDB1C00480EF1 /* SettingsHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A7AD28E29DEDB1C00480EF1 /* SettingsHeaderView.swift */; }; 7A818F1F29F0305800C7F0F4 /* RootConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A818F1E29F0305800C7F0F4 /* RootConfiguration.swift */; }; + 7A83C3FF2A55B72E00DFB83A /* MullvadVPNApp.xctestplan in Resources */ = {isa = PBXBuildFile; fileRef = 7A83C3FE2A55B72E00DFB83A /* MullvadVPNApp.xctestplan */; }; 7ABE318D2A1CDD4500DF4963 /* UIFont+Weight.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7ABE318C2A1CDD4500DF4963 /* UIFont+Weight.swift */; }; 7AE47E522A17972A000418DA /* CustomAlertViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AE47E512A17972A000418DA /* CustomAlertViewController.swift */; }; 7AF0419E29E957EB00D492DD /* AccountCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AF0419D29E957EB00D492DD /* AccountCoordinator.swift */; }; @@ -411,6 +411,7 @@ A97F1F482A1F4E1A00ECEFDE /* MullvadTransport.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A97F1F412A1F4E1A00ECEFDE /* MullvadTransport.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; A97FF5502A0D2FFC00900996 /* NSFileCoordinator+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A97FF54F2A0D2FFC00900996 /* NSFileCoordinator+Extensions.swift */; }; A9A8A8EB2A262AB30086D569 /* FileCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A8A8EA2A262AB30086D569 /* FileCache.swift */; }; + A9AD31D72A6AB68B00141BE8 /* InputTextFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 582AE30F2440A6CA00E6733A /* InputTextFormatter.swift */; }; A9B2CF722A1F64CD0013CC6C /* MullvadREST.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06799ABC28F98E1D00ACD94E /* MullvadREST.framework */; }; A9D99B9A2A1F7C3200DE27D3 /* RESTTransport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 06FAE67D28F83CA50033DD93 /* RESTTransport.swift */; }; A9D99BA02A1F7F3A00DE27D3 /* TransportProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D99B9F2A1F7F3A00DE27D3 /* TransportProvider.swift */; }; @@ -1176,6 +1177,8 @@ 7A7AD28C29DC677800480EF1 /* FirstTimeLaunch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstTimeLaunch.swift; sourceTree = "<group>"; }; 7A7AD28E29DEDB1C00480EF1 /* SettingsHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsHeaderView.swift; sourceTree = "<group>"; }; 7A818F1E29F0305800C7F0F4 /* RootConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootConfiguration.swift; sourceTree = "<group>"; }; + 7A83C3FE2A55B72E00DFB83A /* MullvadVPNApp.xctestplan */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MullvadVPNApp.xctestplan; sourceTree = "<group>"; }; + 7A83C4002A55B81A00DFB83A /* MullvadVPNCI.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = MullvadVPNCI.xctestplan; sourceTree = "<group>"; }; 7ABE318C2A1CDD4500DF4963 /* UIFont+Weight.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIFont+Weight.swift"; sourceTree = "<group>"; }; 7AE47E512A17972A000418DA /* CustomAlertViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomAlertViewController.swift; sourceTree = "<group>"; }; 7AF0419D29E957EB00D492DD /* AccountCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountCoordinator.swift; sourceTree = "<group>"; }; @@ -2086,6 +2089,7 @@ A97F1F422A1F4E1A00ECEFDE /* MullvadTransport */, 584023202A406BF5007B27AC /* TunnelObfuscation */, 58695A9E2A4ADA9200328DB3 /* TunnelObfuscationTests */, + 7A83C3FC2A55B39500DFB83A /* TestPlans */, 58CE5E61224146200008646E /* Products */, 584F991F2902CBDD001F858D /* Frameworks */, ); @@ -2272,6 +2276,15 @@ path = MullvadRESTTests; sourceTree = "<group>"; }; + 7A83C3FC2A55B39500DFB83A /* TestPlans */ = { + isa = PBXGroup; + children = ( + 7A83C3FE2A55B72E00DFB83A /* MullvadVPNApp.xctestplan */, + 7A83C4002A55B81A00DFB83A /* MullvadVPNCI.xctestplan */, + ); + path = TestPlans; + sourceTree = "<group>"; + }; A97F1F422A1F4E1A00ECEFDE /* MullvadTransport */ = { isa = PBXGroup; children = ( @@ -2917,6 +2930,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 7A83C3FF2A55B72E00DFB83A /* MullvadVPNApp.xctestplan in Resources */, 58727283265D173C00F315B2 /* LaunchScreen.storyboard in Resources */, 5859A55529CD9DD900F66591 /* changes.txt in Resources */, 587DCCEF287D84A500CE821E /* countries.geo.json in Resources */, @@ -3134,14 +3148,13 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + A9AD31D72A6AB68B00141BE8 /* InputTextFormatter.swift in Sources */, 58915D6A2A26031B0066445B /* DNSSettings.swift in Sources */, - 58B8644529C7971B005E107C /* InputTextFormatter.swift in Sources */, 58915D692A2601FB0066445B /* WgKeyRotation.swift in Sources */, 580810E62A30E13D00B74552 /* DeviceStateAccessorProtocol.swift in Sources */, 58C3FA662A38549D006A450A /* MockFileCache.swift in Sources */, 58915D642A25F8B30066445B /* DeviceCheckOperation.swift in Sources */, 58915D652A25F9E20066445B /* TunnelSettingsV2.swift in Sources */, - 58B8644529C7971B005E107C /* InputTextFormatter.swift in Sources */, A9467E7F2A29DEFE000DC21F /* RelayCacheTests.swift in Sources */, 582A8A3A28BCE19B00D0F9FB /* FixedWidthIntegerArithmeticsTests.swift in Sources */, 58915D632A25F8400066445B /* DeviceCheckOperationTests.swift in Sources */, diff --git a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme index 44fd0a5d6a..ecfd93db2a 100644 --- a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme +++ b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPN.xcscheme @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "1420" - version = "1.3"> + version = "1.7"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> @@ -153,6 +153,15 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> + <TestPlans> + <TestPlanReference + reference = "container:TestPlans/MullvadVPNApp.xctestplan" + default = "YES"> + </TestPlanReference> + <TestPlanReference + reference = "container:TestPlans/MullvadVPNCI.xctestplan"> + </TestPlanReference> + </TestPlans> <Testables> <TestableReference skipped = "NO"> diff --git a/ios/TestPlans/MullvadVPNApp.xctestplan b/ios/TestPlans/MullvadVPNApp.xctestplan new file mode 100644 index 0000000000..14e6322dd2 --- /dev/null +++ b/ios/TestPlans/MullvadVPNApp.xctestplan @@ -0,0 +1,54 @@ +{ + "configurations" : [ + { + "id" : "09D135C9-74DF-449C-AA90-9BDB4F4E3023", + "name" : "Configuration 1", + "options" : { + + } + } + ], + "defaultOptions" : { + "targetForVariableExpansion" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58CE5E5F224146200008646E", + "name" : "MullvadVPN" + }, + "testTimeoutsEnabled" : true + }, + "testTargets" : [ + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58B0A29F238EE67E00BC001D", + "name" : "MullvadVPNTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58FBFBE5291622580020E046", + "name" : "MullvadRESTTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58695A9C2A4ADA9100328DB3", + "name" : "TunnelObfuscationTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "589A455128E094B300565204", + "name" : "OperationsTests" + } + } + ], + "version" : 1 +} diff --git a/ios/TestPlans/MullvadVPNCI.xctestplan b/ios/TestPlans/MullvadVPNCI.xctestplan new file mode 100644 index 0000000000..c5e374b7ff --- /dev/null +++ b/ios/TestPlans/MullvadVPNCI.xctestplan @@ -0,0 +1,61 @@ +{ + "configurations" : [ + { + "id" : "E4117B5A-56A7-46CD-8037-2897AA9E2324", + "name" : "Configuration 1", + "options" : { + + } + } + ], + "defaultOptions" : { + "targetForVariableExpansion" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58CE5E5F224146200008646E", + "name" : "MullvadVPN" + }, + "testTimeoutsEnabled" : true + }, + "testTargets" : [ + { + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58D0C79223F1CE7000FE9BA7", + "name" : "MullvadVPNScreenshots" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58FBFBE5291622580020E046", + "name" : "MullvadRESTTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58B0A29F238EE67E00BC001D", + "name" : "MullvadVPNTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "58695A9C2A4ADA9100328DB3", + "name" : "TunnelObfuscationTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:MullvadVPN.xcodeproj", + "identifier" : "589A455128E094B300565204", + "name" : "OperationsTests" + } + } + ], + "version" : 1 +} diff --git a/ios/build.sh b/ios/build.sh index 14f8fa59d7..406cd5738b 100755 --- a/ios/build.sh +++ b/ios/build.sh @@ -106,6 +106,7 @@ release_build() { -sdk iphoneos \ -configuration Release \ -derivedDataPath "$DERIVED_DATA_DIR" \ + -testPlan MullvadVPNCI \ $@ } |
