Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup tests #28

Merged
merged 9 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ xcuserdata/
*.xccheckout
*.xcscmblueprint
*.profraw
*.xcscheme

## Obj-C/Swift specific
*.hmap
Expand Down
162 changes: 161 additions & 1 deletion aftermath.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
A0E1E3F8275ED35D008D0DC6 /* NetworkConnections.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0E1E3F7275ED35D008D0DC6 /* NetworkConnections.swift */; };
A0E22EF2285CD60A003A411A /* CommonDirectories.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0E22EF1285CD60A003A411A /* CommonDirectories.swift */; };
A0FAEEFE28B94B2C00AC655F /* LogParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0FAEEFD28B94B2C00AC655F /* LogParser.swift */; };
A190FFD328B8094600B9EF9A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A190FFD228B8094600B9EF9A /* XCTest.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
A190FFE228B8151F00B9EF9A /* MockFileManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A190FFD528B80C3900B9EF9A /* MockFileManager.swift */; };
A190FFE328B8168400B9EF9A /* AftermathTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A190FFCF28B8084F00B9EF9A /* AftermathTests.swift */; };
A1E433D928B918FF00E2B510 /* Aftermath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8ABB9E302756D2B500C0ADD7 /* Aftermath.swift */; };
A1E433DB28B919A400E2B510 /* SwiftCSV in Frameworks */ = {isa = PBXBuildFile; productRef = A1E433DA28B919A400E2B510 /* SwiftCSV */; };
A1E433E528B9270800E2B510 /* dummyPlist.plist in Resources */ = {isa = PBXBuildFile; fileRef = A1E433E428B9270800E2B510 /* dummyPlist.plist */; };
A3046F8E27627DAC0069AA21 /* Module.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3046F8D27627DAC0069AA21 /* Module.swift */; };
A3046F902763AE5E0069AA21 /* CaseFiles.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3046F8F2763AE5E0069AA21 /* CaseFiles.swift */; };
A3745358275730870074B65C /* LaunchItems.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3745357275730870074B65C /* LaunchItems.swift */; };
Expand Down Expand Up @@ -107,6 +113,11 @@
A0E1E3F7275ED35D008D0DC6 /* NetworkConnections.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkConnections.swift; sourceTree = "<group>"; };
A0E22EF1285CD60A003A411A /* CommonDirectories.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommonDirectories.swift; sourceTree = "<group>"; };
A0FAEEFD28B94B2C00AC655F /* LogParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LogParser.swift; sourceTree = "<group>"; };
A190FFCF28B8084F00B9EF9A /* AftermathTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AftermathTests.swift; sourceTree = "<group>"; };
A190FFD228B8094600B9EF9A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
A190FFD528B80C3900B9EF9A /* MockFileManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockFileManager.swift; sourceTree = "<group>"; };
A190FFDB28B8151300B9EF9A /* tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
A1E433E428B9270800E2B510 /* dummyPlist.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = dummyPlist.plist; sourceTree = "<group>"; };
A3046F8D27627DAC0069AA21 /* Module.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Module.swift; sourceTree = "<group>"; };
A3046F8F2763AE5E0069AA21 /* CaseFiles.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CaseFiles.swift; sourceTree = "<group>"; };
A3745357275730870074B65C /* LaunchItems.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchItems.swift; sourceTree = "<group>"; };
Expand All @@ -118,10 +129,19 @@
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
A190FFD828B8151300B9EF9A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A1E433DB28B919A400E2B510 /* SwiftCSV in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A3CD4E4F274434EE00869ECB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A190FFD328B8094600B9EF9A /* XCTest.framework in Frameworks */,
A0C930CF289852E80011FB87 /* ZIPFoundation in Frameworks */,
A0C930D728A543F80011FB87 /* SwiftCSV in Frameworks */,
);
Expand Down Expand Up @@ -265,6 +285,48 @@
path = filesystem;
sourceTree = "<group>";
};
A190FFCD28B8080100B9EF9A /* tests */ = {
isa = PBXGroup;
children = (
A1E433DE28B91E2C00E2B510 /* resources */,
A190FFD428B80C2D00B9EF9A /* mocks */,
A190FFCE28B8083600B9EF9A /* aftermath */,
);
path = tests;
sourceTree = "<group>";
};
A190FFCE28B8083600B9EF9A /* aftermath */ = {
isa = PBXGroup;
children = (
A190FFCF28B8084F00B9EF9A /* AftermathTests.swift */,
);
path = aftermath;
sourceTree = "<group>";
};
A190FFD128B8094600B9EF9A /* Frameworks */ = {
isa = PBXGroup;
children = (
A190FFD228B8094600B9EF9A /* XCTest.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
A190FFD428B80C2D00B9EF9A /* mocks */ = {
isa = PBXGroup;
children = (
A190FFD528B80C3900B9EF9A /* MockFileManager.swift */,
);
path = mocks;
sourceTree = "<group>";
};
A1E433DE28B91E2C00E2B510 /* resources */ = {
isa = PBXGroup;
children = (
A1E433E428B9270800E2B510 /* dummyPlist.plist */,
);
path = resources;
sourceTree = "<group>";
};
A374535B2757C1110074B65C /* extensions */ = {
isa = PBXGroup;
children = (
Expand All @@ -276,6 +338,7 @@
A3CD4E49274434EE00869ECB = {
isa = PBXGroup;
children = (
A190FFCD28B8080100B9EF9A /* tests */,
A029AB1128769F6C00649701 /* libs */,
A3CD4E54274434EE00869ECB /* aftermath */,
A08342D4284A8211005E437A /* analysis */,
Expand All @@ -290,13 +353,15 @@
8ABB9E2927568E9000C0ADD7 /* unifiedlogs */,
A3A3A3CD274754B400F8F557 /* README.md */,
A3CD4E53274434EE00869ECB /* Products */,
A190FFD128B8094600B9EF9A /* Frameworks */,
);
sourceTree = "<group>";
};
A3CD4E53274434EE00869ECB /* Products */ = {
isa = PBXGroup;
children = (
A3CD4E52274434EE00869ECB /* aftermath */,
A190FFDB28B8151300B9EF9A /* tests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -315,6 +380,26 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
A190FFDA28B8151300B9EF9A /* tests */ = {
isa = PBXNativeTarget;
buildConfigurationList = A190FFDF28B8151300B9EF9A /* Build configuration list for PBXNativeTarget "tests" */;
buildPhases = (
A190FFD728B8151300B9EF9A /* Sources */,
A190FFD828B8151300B9EF9A /* Frameworks */,
A190FFD928B8151300B9EF9A /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = tests;
packageProductDependencies = (
A1E433DA28B919A400E2B510 /* SwiftCSV */,
);
productName = aftermathTests;
productReference = A190FFDB28B8151300B9EF9A /* tests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
A3CD4E51274434EE00869ECB /* aftermath */ = {
isa = PBXNativeTarget;
buildConfigurationList = A3CD4E59274434EE00869ECB /* Build configuration list for PBXNativeTarget "aftermath" */;
Expand Down Expand Up @@ -343,9 +428,12 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1310;
LastSwiftUpdateCheck = 1340;
LastUpgradeCheck = 1320;
TargetAttributes = {
A190FFDA28B8151300B9EF9A = {
CreatedOnToolsVersion = 13.4;
};
A3CD4E51274434EE00869ECB = {
CreatedOnToolsVersion = 13.1;
LastSwiftMigration = 1340;
Expand All @@ -370,11 +458,33 @@
projectRoot = "";
targets = (
A3CD4E51274434EE00869ECB /* aftermath */,
A190FFDA28B8151300B9EF9A /* tests */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
A190FFD928B8151300B9EF9A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A1E433E528B9270800E2B510 /* dummyPlist.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
A190FFD728B8151300B9EF9A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A1E433D928B918FF00E2B510 /* Aftermath.swift in Sources */,
A190FFE328B8168400B9EF9A /* AftermathTests.swift in Sources */,
A190FFE228B8151F00B9EF9A /* MockFileManager.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A3CD4E4E274434EE00869ECB /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -428,6 +538,40 @@
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
A190FFE028B8151300B9EF9A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 6PV5YF2UES;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 12.3;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.jamf.aftermath.aftermathTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
A190FFE128B8151300B9EF9A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 6PV5YF2UES;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 12.3;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.jamf.aftermath.aftermathTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
};
name = Release;
};
A3CD4E57274434EE00869ECB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -481,6 +625,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LD_RUNPATH_SEARCH_PATHS = /Applications/Xcode.app/Contents/Developer/Library/Frameworks/;
MACOSX_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
Expand Down Expand Up @@ -538,6 +683,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LD_RUNPATH_SEARCH_PATHS = /Applications/Xcode.app/Contents/Developer/Library/Frameworks/;
MACOSX_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
Expand Down Expand Up @@ -602,6 +748,15 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
A190FFDF28B8151300B9EF9A /* Build configuration list for PBXNativeTarget "tests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A190FFE028B8151300B9EF9A /* Debug */,
A190FFE128B8151300B9EF9A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A3CD4E4D274434EE00869ECB /* Build configuration list for PBXProject "aftermath" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down Expand Up @@ -652,6 +807,11 @@
package = A0C930D528A543F80011FB87 /* XCRemoteSwiftPackageReference "SwiftCSV" */;
productName = SwiftCSV;
};
A1E433DA28B919A400E2B510 /* SwiftCSV */ = {
isa = XCSwiftPackageProductDependency;
package = A0C930D528A543F80011FB87 /* XCRemoteSwiftPackageReference "SwiftCSV" */;
productName = SwiftCSV;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = A3CD4E4A274434EE00869ECB /* Project object */;
Expand Down
103 changes: 103 additions & 0 deletions aftermath.xcodeproj/xcshareddata/xcschemes/aftermath.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1340"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A3CD4E51274434EE00869ECB"
BuildableName = "aftermath"
BlueprintName = "aftermath"
ReferencedContainer = "container:aftermath.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A190FFDA28B8151300B9EF9A"
BuildableName = "tests.xctest"
BlueprintName = "tests"
ReferencedContainer = "container:aftermath.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A190FFDA28B8151300B9EF9A"
BuildableName = "tests.xctest"
BlueprintName = "tests"
ReferencedContainer = "container:aftermath.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
debugAsWhichUser = "root"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A3CD4E51274434EE00869ECB"
BuildableName = "aftermath"
BlueprintName = "aftermath"
ReferencedContainer = "container:aftermath.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A3CD4E51274434EE00869ECB"
BuildableName = "aftermath"
BlueprintName = "aftermath"
ReferencedContainer = "container:aftermath.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading