Skip to content

Commit 9abc06b

Browse files
Ertan YağmurErtan Yağmur
authored andcommitted
add test target
1 parent afc760e commit 9abc06b

2 files changed

Lines changed: 163 additions & 0 deletions

File tree

TonalLab.xcodeproj/project.pbxproj

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@
66
objectVersion = 77;
77
objects = {
88

9+
/* Begin PBXContainerItemProxy section */
10+
702C97EA2F3FAD90004B0C3D /* PBXContainerItemProxy */ = {
11+
isa = PBXContainerItemProxy;
12+
containerPortal = 702C97BE2F3FAA3B004B0C3D /* Project object */;
13+
proxyType = 1;
14+
remoteGlobalIDString = 702C97C52F3FAA3B004B0C3D;
15+
remoteInfo = TonalLab;
16+
};
17+
/* End PBXContainerItemProxy section */
18+
919
/* Begin PBXFileReference section */
1020
702C97C62F3FAA3B004B0C3D /* TonalLab.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TonalLab.app; sourceTree = BUILT_PRODUCTS_DIR; };
21+
702C97E62F3FAD90004B0C3D /* TonalLabTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TonalLabTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
1122
/* End PBXFileReference section */
1223

1324
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
@@ -29,6 +40,11 @@
2940
path = TonalLab;
3041
sourceTree = "<group>";
3142
};
43+
702C97E72F3FAD90004B0C3D /* TonalLabTests */ = {
44+
isa = PBXFileSystemSynchronizedRootGroup;
45+
path = TonalLabTests;
46+
sourceTree = "<group>";
47+
};
3248
/* End PBXFileSystemSynchronizedRootGroup section */
3349

3450
/* Begin PBXFrameworksBuildPhase section */
@@ -39,13 +55,21 @@
3955
);
4056
runOnlyForDeploymentPostprocessing = 0;
4157
};
58+
702C97E32F3FAD90004B0C3D /* Frameworks */ = {
59+
isa = PBXFrameworksBuildPhase;
60+
buildActionMask = 2147483647;
61+
files = (
62+
);
63+
runOnlyForDeploymentPostprocessing = 0;
64+
};
4265
/* End PBXFrameworksBuildPhase section */
4366

4467
/* Begin PBXGroup section */
4568
702C97BD2F3FAA3B004B0C3D = {
4669
isa = PBXGroup;
4770
children = (
4871
702C97C82F3FAA3B004B0C3D /* TonalLab */,
72+
702C97E72F3FAD90004B0C3D /* TonalLabTests */,
4973
702C97C72F3FAA3B004B0C3D /* Products */,
5074
);
5175
sourceTree = "<group>";
@@ -54,6 +78,7 @@
5478
isa = PBXGroup;
5579
children = (
5680
702C97C62F3FAA3B004B0C3D /* TonalLab.app */,
81+
702C97E62F3FAD90004B0C3D /* TonalLabTests.xctest */,
5782
);
5883
name = Products;
5984
sourceTree = "<group>";
@@ -83,6 +108,29 @@
83108
productReference = 702C97C62F3FAA3B004B0C3D /* TonalLab.app */;
84109
productType = "com.apple.product-type.application";
85110
};
111+
702C97E52F3FAD90004B0C3D /* TonalLabTests */ = {
112+
isa = PBXNativeTarget;
113+
buildConfigurationList = 702C97EC2F3FAD90004B0C3D /* Build configuration list for PBXNativeTarget "TonalLabTests" */;
114+
buildPhases = (
115+
702C97E22F3FAD90004B0C3D /* Sources */,
116+
702C97E32F3FAD90004B0C3D /* Frameworks */,
117+
702C97E42F3FAD90004B0C3D /* Resources */,
118+
);
119+
buildRules = (
120+
);
121+
dependencies = (
122+
702C97EB2F3FAD90004B0C3D /* PBXTargetDependency */,
123+
);
124+
fileSystemSynchronizedGroups = (
125+
702C97E72F3FAD90004B0C3D /* TonalLabTests */,
126+
);
127+
name = TonalLabTests;
128+
packageProductDependencies = (
129+
);
130+
productName = TonalLabTests;
131+
productReference = 702C97E62F3FAD90004B0C3D /* TonalLabTests.xctest */;
132+
productType = "com.apple.product-type.bundle.unit-test";
133+
};
86134
/* End PBXNativeTarget section */
87135

88136
/* Begin PBXProject section */
@@ -96,6 +144,10 @@
96144
702C97C52F3FAA3B004B0C3D = {
97145
CreatedOnToolsVersion = 26.1.1;
98146
};
147+
702C97E52F3FAD90004B0C3D = {
148+
CreatedOnToolsVersion = 26.1.1;
149+
TestTargetID = 702C97C52F3FAA3B004B0C3D;
150+
};
99151
};
100152
};
101153
buildConfigurationList = 702C97C12F3FAA3B004B0C3D /* Build configuration list for PBXProject "TonalLab" */;
@@ -113,6 +165,7 @@
113165
projectRoot = "";
114166
targets = (
115167
702C97C52F3FAA3B004B0C3D /* TonalLab */,
168+
702C97E52F3FAD90004B0C3D /* TonalLabTests */,
116169
);
117170
};
118171
/* End PBXProject section */
@@ -125,6 +178,13 @@
125178
);
126179
runOnlyForDeploymentPostprocessing = 0;
127180
};
181+
702C97E42F3FAD90004B0C3D /* Resources */ = {
182+
isa = PBXResourcesBuildPhase;
183+
buildActionMask = 2147483647;
184+
files = (
185+
);
186+
runOnlyForDeploymentPostprocessing = 0;
187+
};
128188
/* End PBXResourcesBuildPhase section */
129189

130190
/* Begin PBXSourcesBuildPhase section */
@@ -135,8 +195,23 @@
135195
);
136196
runOnlyForDeploymentPostprocessing = 0;
137197
};
198+
702C97E22F3FAD90004B0C3D /* Sources */ = {
199+
isa = PBXSourcesBuildPhase;
200+
buildActionMask = 2147483647;
201+
files = (
202+
);
203+
runOnlyForDeploymentPostprocessing = 0;
204+
};
138205
/* End PBXSourcesBuildPhase section */
139206

207+
/* Begin PBXTargetDependency section */
208+
702C97EB2F3FAD90004B0C3D /* PBXTargetDependency */ = {
209+
isa = PBXTargetDependency;
210+
target = 702C97C52F3FAA3B004B0C3D /* TonalLab */;
211+
targetProxy = 702C97EA2F3FAD90004B0C3D /* PBXContainerItemProxy */;
212+
};
213+
/* End PBXTargetDependency section */
214+
140215
/* Begin XCBuildConfiguration section */
141216
702C97DA2F3FAA3D004B0C3D /* Debug */ = {
142217
isa = XCBuildConfiguration;
@@ -333,6 +408,50 @@
333408
};
334409
name = Release;
335410
};
411+
702C97ED2F3FAD90004B0C3D /* Debug */ = {
412+
isa = XCBuildConfiguration;
413+
buildSettings = {
414+
BUNDLE_LOADER = "$(TEST_HOST)";
415+
CODE_SIGN_STYLE = Automatic;
416+
CURRENT_PROJECT_VERSION = 1;
417+
DEVELOPMENT_TEAM = ZF77D3H4CR;
418+
GENERATE_INFOPLIST_FILE = YES;
419+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
420+
MARKETING_VERSION = 1.0;
421+
PRODUCT_BUNDLE_IDENTIFIER = com.ertan.TonalLabTests;
422+
PRODUCT_NAME = "$(TARGET_NAME)";
423+
STRING_CATALOG_GENERATE_SYMBOLS = NO;
424+
SWIFT_APPROACHABLE_CONCURRENCY = YES;
425+
SWIFT_EMIT_LOC_STRINGS = NO;
426+
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
427+
SWIFT_VERSION = 5.0;
428+
TARGETED_DEVICE_FAMILY = "1,2";
429+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TonalLab.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/TonalLab";
430+
};
431+
name = Debug;
432+
};
433+
702C97EE2F3FAD90004B0C3D /* Release */ = {
434+
isa = XCBuildConfiguration;
435+
buildSettings = {
436+
BUNDLE_LOADER = "$(TEST_HOST)";
437+
CODE_SIGN_STYLE = Automatic;
438+
CURRENT_PROJECT_VERSION = 1;
439+
DEVELOPMENT_TEAM = ZF77D3H4CR;
440+
GENERATE_INFOPLIST_FILE = YES;
441+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
442+
MARKETING_VERSION = 1.0;
443+
PRODUCT_BUNDLE_IDENTIFIER = com.ertan.TonalLabTests;
444+
PRODUCT_NAME = "$(TARGET_NAME)";
445+
STRING_CATALOG_GENERATE_SYMBOLS = NO;
446+
SWIFT_APPROACHABLE_CONCURRENCY = YES;
447+
SWIFT_EMIT_LOC_STRINGS = NO;
448+
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
449+
SWIFT_VERSION = 5.0;
450+
TARGETED_DEVICE_FAMILY = "1,2";
451+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TonalLab.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/TonalLab";
452+
};
453+
name = Release;
454+
};
336455
/* End XCBuildConfiguration section */
337456

338457
/* Begin XCConfigurationList section */
@@ -354,6 +473,15 @@
354473
defaultConfigurationIsVisible = 0;
355474
defaultConfigurationName = Release;
356475
};
476+
702C97EC2F3FAD90004B0C3D /* Build configuration list for PBXNativeTarget "TonalLabTests" */ = {
477+
isa = XCConfigurationList;
478+
buildConfigurations = (
479+
702C97ED2F3FAD90004B0C3D /* Debug */,
480+
702C97EE2F3FAD90004B0C3D /* Release */,
481+
);
482+
defaultConfigurationIsVisible = 0;
483+
defaultConfigurationName = Release;
484+
};
357485
/* End XCConfigurationList section */
358486
};
359487
rootObject = 702C97BE2F3FAA3B004B0C3D /* Project object */;

TonalLabTests/TonalLabTests.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// TonalLabTests.swift
3+
// TonalLabTests
4+
//
5+
// Created by Ertan Yağmur on 13.02.2026.
6+
//
7+
8+
import XCTest
9+
10+
final class TonalLabTests: XCTestCase {
11+
12+
override func setUpWithError() throws {
13+
// Put setup code here. This method is called before the invocation of each test method in the class.
14+
}
15+
16+
override func tearDownWithError() throws {
17+
// Put teardown code here. This method is called after the invocation of each test method in the class.
18+
}
19+
20+
func testExample() throws {
21+
// This is an example of a functional test case.
22+
// Use XCTAssert and related functions to verify your tests produce the correct results.
23+
// Any test you write for XCTest can be annotated as throws and async.
24+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
25+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
26+
}
27+
28+
func testPerformanceExample() throws {
29+
// This is an example of a performance test case.
30+
measure {
31+
// Put the code you want to measure the time of here.
32+
}
33+
}
34+
35+
}

0 commit comments

Comments
 (0)