Skip to content

Commit

Permalink
Migrated to Xcode test plans
Browse files Browse the repository at this point in the history
  • Loading branch information
newmarcel committed Jun 15, 2023
1 parent c5a49e7 commit e267ef7
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 6 deletions.
6 changes: 4 additions & 2 deletions KeepingYouAwake.xcodeproj/project.pbxproj
Expand Up @@ -195,8 +195,8 @@
DA2CCD5D26F8754C00568BDD /* KYAPreferencesContentViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KYAPreferencesContentViewController.h; sourceTree = "<group>"; };
DA2CCD5E26F8754C00568BDD /* KYAPreferencesContentViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KYAPreferencesContentViewController.m; sourceTree = "<group>"; };
DA2CCD6326F87A4500568BDD /* KYAPreferencesContentViewControllers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KYAPreferencesContentViewControllers.h; sourceTree = "<group>"; };
DA4121721F5C07140083B6E6 /* zh */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh; path = zh.lproj/Localizable.strings; sourceTree = "<group>"; };
DA4121731F5C07140083B6E6 /* zh */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh; path = zh.lproj/InfoPlist.strings; sourceTree = "<group>"; };
DA2D55152A3B80FB003E09E3 /* DefaultTestPlan.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = DefaultTestPlan.xctestplan; sourceTree = "<group>"; };
DA2D55162A3B8379003E09E3 /* SanitizerTestPlan.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = SanitizerTestPlan.xctestplan; sourceTree = "<group>"; };
DA4835F126F8CF100073A062 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/KYAAdvancedPreferencesViewController.xib; sourceTree = "<group>"; };
DA4835F426F8CF160073A062 /* zh */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh; path = zh.lproj/KYAAdvancedPreferencesViewController.strings; sourceTree = "<group>"; };
DA4835F826F8CFCC0073A062 /* da */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/KYAAdvancedPreferencesViewController.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -657,6 +657,8 @@
DA54C12C1D69C55400AF9E9D /* Localizable.strings */,
DA637B3E19F14693004C8838 /* main.m */,
DAD68A7B27C957B30036ED19 /* MainMenu.xib */,
DA2D55152A3B80FB003E09E3 /* DefaultTestPlan.xctestplan */,
DA2D55162A3B8379003E09E3 /* SanitizerTestPlan.xctestplan */,
);
name = "Other…";
sourceTree = "<group>";
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
version = "1.3">
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand All @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:KeepingYouAwake/DefaultTestPlan.xctestplan"
default = "YES">
</TestPlanReference>
<TestPlanReference
reference = "container:KeepingYouAwake/SanitizerTestPlan.xctestplan">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
Expand Down
44 changes: 44 additions & 0 deletions KeepingYouAwake/DefaultTestPlan.xctestplan
@@ -0,0 +1,44 @@
{
"configurations" : [
{
"id" : "84672315-AFF7-4555-9A40-85A2514E11C8",
"name" : "Default Configuration",
"options" : {

}
}
],
"defaultOptions" : {
"codeCoverage" : false,
"targetForVariableExpansion" : {
"containerPath" : "container:KeepingYouAwake.xcodeproj",
"identifier" : "DA637B3819F14693004C8838",
"name" : "KeepingYouAwake"
},
"testExecutionOrdering" : "random"
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:Packages\/KYAActivationDurations",
"identifier" : "KYAActivationDurationsTests",
"name" : "KYAActivationDurationsTests"
}
},
{
"target" : {
"containerPath" : "container:Packages\/KYAApplicationEvents",
"identifier" : "KYAApplicationEventsTests",
"name" : "KYAApplicationEventsTests"
}
},
{
"target" : {
"containerPath" : "container:Packages\/KYAApplicationSupport",
"identifier" : "KYAApplicationSupportTests",
"name" : "KYAApplicationSupportTests"
}
}
],
"version" : 1
}
63 changes: 63 additions & 0 deletions KeepingYouAwake/SanitizerTestPlan.xctestplan
@@ -0,0 +1,63 @@
{
"configurations" : [
{
"id" : "84672315-AFF7-4555-9A40-85A2514E11C8",
"name" : "Random Repeating Tests",
"options" : {

}
},
{
"id" : "13C378A7-F775-445D-B99E-8C698C3A3D5E",
"name" : "Address Sanitization",
"options" : {
"addressSanitizer" : {
"detectStackUseAfterReturn" : true,
"enabled" : true
},
"undefinedBehaviorSanitizerEnabled" : true
}
},
{
"id" : "82FA29CB-AAF8-4544-A56F-F8241FAA052C",
"name" : "Thread Sanitization",
"options" : {
"threadSanitizerEnabled" : true
}
}
],
"defaultOptions" : {
"codeCoverage" : false,
"targetForVariableExpansion" : {
"containerPath" : "container:KeepingYouAwake.xcodeproj",
"identifier" : "DA637B3819F14693004C8838",
"name" : "KeepingYouAwake"
},
"testExecutionOrdering" : "random",
"testRepetitionMode" : "fixedIterations"
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:Packages\/KYAActivationDurations",
"identifier" : "KYAActivationDurationsTests",
"name" : "KYAActivationDurationsTests"
}
},
{
"target" : {
"containerPath" : "container:Packages\/KYAApplicationEvents",
"identifier" : "KYAApplicationEventsTests",
"name" : "KYAApplicationEventsTests"
}
},
{
"target" : {
"containerPath" : "container:Packages\/KYAApplicationSupport",
"identifier" : "KYAApplicationSupportTests",
"name" : "KYAApplicationSupportTests"
}
}
],
"version" : 1
}

0 comments on commit e267ef7

Please sign in to comment.