Skip to content

Commit

Permalink
Fix screenshot script and testplan
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Petersson committed Aug 29, 2023
1 parent 72b8b2a commit 314a03d
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 23 deletions.
6 changes: 6 additions & 0 deletions ios/MullvadVPN.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@
58FDF2D92A0BA11A00C2B061 /* DeviceCheckOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58FDF2D82A0BA11900C2B061 /* DeviceCheckOperation.swift */; };
58FEEB58260B662E00A621A8 /* AutomaticKeyboardResponder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58FEEB57260B662E00A621A8 /* AutomaticKeyboardResponder.swift */; };
58FF2C03281BDE02009EF542 /* SettingsManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58FF2C02281BDE02009EF542 /* SettingsManager.swift */; };
7A02D4EB2A9CEC7A00C19E31 /* MullvadVPNScreenshots.xctestplan in Resources */ = {isa = PBXBuildFile; fileRef = 7A02D4EA2A9CEC7A00C19E31 /* MullvadVPNScreenshots.xctestplan */; };
7A09C98129D99215000C2CAC /* String+FuzzyMatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A09C98029D99215000C2CAC /* String+FuzzyMatch.swift */; };
7A0C0F632A979C4A0058EFCE /* Coordinator+Router.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A0C0F622A979C4A0058EFCE /* Coordinator+Router.swift */; };
7A11DD0B2A9495D400098CD8 /* AppRoutes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5802EBC42A8E44AC00E5CE4C /* AppRoutes.swift */; };
Expand Down Expand Up @@ -1292,6 +1293,7 @@
58FDF2D82A0BA11900C2B061 /* DeviceCheckOperation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DeviceCheckOperation.swift; sourceTree = "<group>"; };
58FEEB57260B662E00A621A8 /* AutomaticKeyboardResponder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AutomaticKeyboardResponder.swift; sourceTree = "<group>"; };
58FF2C02281BDE02009EF542 /* SettingsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsManager.swift; sourceTree = "<group>"; };
7A02D4EA2A9CEC7A00C19E31 /* MullvadVPNScreenshots.xctestplan */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MullvadVPNScreenshots.xctestplan; sourceTree = "<group>"; };
7A09C98029D99215000C2CAC /* String+FuzzyMatch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+FuzzyMatch.swift"; sourceTree = "<group>"; };
7A0C0F622A979C4A0058EFCE /* Coordinator+Router.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Coordinator+Router.swift"; sourceTree = "<group>"; };
7A1A26422A2612AE00B978AA /* PaymentAlertPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaymentAlertPresenter.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2525,6 +2527,7 @@
7A83C3FC2A55B39500DFB83A /* TestPlans */ = {
isa = PBXGroup;
children = (
7A02D4EA2A9CEC7A00C19E31 /* MullvadVPNScreenshots.xctestplan */,
7A83C3FE2A55B72E00DFB83A /* MullvadVPNApp.xctestplan */,
7A83C4002A55B81A00DFB83A /* MullvadVPNCI.xctestplan */,
);
Expand Down Expand Up @@ -3367,6 +3370,7 @@
7A83C3FF2A55B72E00DFB83A /* MullvadVPNApp.xctestplan in Resources */,
58727283265D173C00F315B2 /* LaunchScreen.storyboard in Resources */,
5859A55529CD9DD900F66591 /* changes.txt in Resources */,
7A02D4EB2A9CEC7A00C19E31 /* MullvadVPNScreenshots.xctestplan in Resources */,
587DCCEF287D84A500CE821E /* countries.geo.json in Resources */,
58CE5E6B224146210008646E /* Assets.xcassets in Resources */,
5883A09E266A5AF7003EFFCB /* Localizable.strings in Resources */,
Expand Down Expand Up @@ -5055,6 +5059,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "$(APPLICATION_IDENTIFIER).Screenshots";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = MullvadVPN;
};
Expand All @@ -5072,6 +5077,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "$(APPLICATION_IDENTIFIER).Screenshots";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = MullvadVPN;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@
<TestPlanReference
reference = "container:TestPlans/MullvadVPNCI.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:TestPlans/MullvadVPNScreenshots.xctestplan">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@
systemAttachmentLifetime = "keepNever">
<TestPlans>
<TestPlanReference
reference = "container:TestPlans/MullvadVPNApp.xctestplan"
default = "YES">
reference = "container:TestPlans/MullvadVPNApp.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:TestPlans/MullvadVPNCI.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:TestPlans/MullvadVPNScreenshots.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
Expand Down Expand Up @@ -67,15 +70,6 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "58D0C79223F1CE7000FE9BA7"
BuildableName = "MullvadVPNScreenshots.xctest"
BlueprintName = "MullvadVPNScreenshots"
ReferencedContainer = "container:MullvadVPN.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
3 changes: 3 additions & 0 deletions ios/Snapfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ languages([
# The name of the scheme which contains the UI Tests
scheme("MullvadVPNScreenshots")

# The name of the test plan which contains the UI Tests
testplan("MullvadVPNScreenshots")

# Where should the resulting screenshots be stored?
output_directory("./Screenshots")

Expand Down
9 changes: 5 additions & 4 deletions ios/TestPlans/MullvadVPNApp.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
"parallelizable" : true,
"target" : {
"containerPath" : "container:MullvadVPN.xcodeproj",
"identifier" : "58B0A29F238EE67E00BC001D",
"name" : "MullvadVPNTests"
"identifier" : "58FBFBE5291622580020E046",
"name" : "MullvadRESTTests"
}
},
{
"parallelizable" : true,
"target" : {
"containerPath" : "container:MullvadVPN.xcodeproj",
"identifier" : "58FBFBE5291622580020E046",
"name" : "MullvadRESTTests"
"identifier" : "58B0A29F238EE67E00BC001D",
"name" : "MullvadVPNTests"
}
},
{
Expand Down Expand Up @@ -58,6 +58,7 @@
}
},
{
"parallelizable" : true,
"target" : {
"containerPath" : "container:MullvadVPN.xcodeproj",
"identifier" : "7A88DCD62A8FABBE00D2FF0E",
Expand Down
8 changes: 0 additions & 8 deletions ios/TestPlans/MullvadVPNCI.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@
"testTimeoutsEnabled" : true
},
"testTargets" : [
{
"enabled" : false,
"target" : {
"containerPath" : "container:MullvadVPN.xcodeproj",
"identifier" : "58D0C79223F1CE7000FE9BA7",
"name" : "MullvadVPNScreenshots"
}
},
{
"parallelizable" : true,
"target" : {
Expand Down
29 changes: 29 additions & 0 deletions ios/TestPlans/MullvadVPNScreenshots.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"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"
}
}
],
"version" : 1
}

0 comments on commit 314a03d

Please sign in to comment.