Skip to content

Commit 0c4f040

Browse files
committed
Update the test case configuration to fix warnings
1 parent b9f6986 commit 0c4f040

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

Example/SDWebImageYYPlugin.xcodeproj/project.pbxproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@
292292
developmentRegion = English;
293293
hasScannedForEncodings = 0;
294294
knownRegions = (
295+
English,
295296
en,
296297
Base,
297298
);
@@ -609,7 +610,6 @@
609610
buildSettings = {
610611
BUNDLE_LOADER = "$(TEST_HOST)";
611612
FRAMEWORK_SEARCH_PATHS = (
612-
"$(SDKROOT)/Developer/Library/Frameworks",
613613
"$(inherited)",
614614
"$(DEVELOPER_FRAMEWORKS_DIR)",
615615
);
@@ -633,7 +633,6 @@
633633
buildSettings = {
634634
BUNDLE_LOADER = "$(TEST_HOST)";
635635
FRAMEWORK_SEARCH_PATHS = (
636-
"$(SDKROOT)/Developer/Library/Frameworks",
637636
"$(inherited)",
638637
"$(DEVELOPER_FRAMEWORKS_DIR)",
639638
);

Example/SDWebImageYYPlugin.xcodeproj/xcshareddata/xcschemes/SDWebImageYYPlugin_Tests.xcscheme

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,29 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "6003F5AD195388D20070C39A"
18+
BuildableName = "SDWebImageYYPlugin_Tests.xctest"
19+
BlueprintName = "SDWebImageYYPlugin_Tests"
20+
ReferencedContainer = "container:SDWebImageYYPlugin.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
824
</BuildAction>
925
<TestAction
1026
buildConfiguration = "Debug"
1127
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
1228
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
13-
codeCoverageEnabled = "YES"
14-
shouldUseLaunchSchemeArgsEnv = "YES">
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
1531
<Testables>
1632
<TestableReference
1733
skipped = "NO">
@@ -24,8 +40,6 @@
2440
</BuildableReference>
2541
</TestableReference>
2642
</Testables>
27-
<AdditionalOptions>
28-
</AdditionalOptions>
2943
</TestAction>
3044
<LaunchAction
3145
buildConfiguration = "Debug"
@@ -37,15 +51,22 @@
3751
debugDocumentVersioning = "YES"
3852
debugServiceExtension = "internal"
3953
allowLocationSimulation = "YES">
40-
<AdditionalOptions>
41-
</AdditionalOptions>
4254
</LaunchAction>
4355
<ProfileAction
4456
buildConfiguration = "Release"
4557
shouldUseLaunchSchemeArgsEnv = "YES"
4658
savedToolIdentifier = ""
4759
useCustomWorkingDirectory = "NO"
4860
debugDocumentVersioning = "YES">
61+
<MacroExpansion>
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "6003F5AD195388D20070C39A"
65+
BuildableName = "SDWebImageYYPlugin_Tests.xctest"
66+
BlueprintName = "SDWebImageYYPlugin_Tests"
67+
ReferencedContainer = "container:SDWebImageYYPlugin.xcodeproj">
68+
</BuildableReference>
69+
</MacroExpansion>
4970
</ProfileAction>
5071
<AnalyzeAction
5172
buildConfiguration = "Debug">

Example/Tests/SDYYCacheTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ - (void)testCustomMemoryCache {
3434
NSString *nameSpace = @"YYMemoryCache";
3535
NSString *cacheDictionary = [self makeDiskCachePath:nameSpace];
3636
SDImageCache *cache = [[SDImageCache alloc] initWithNamespace:nameSpace diskCacheDirectory:cacheDictionary config:config];
37-
YYMemoryCache *memoryCache = cache.memoryCache;
37+
id memoryCache = cache.memoryCache;
3838
expect([memoryCache isKindOfClass:[YYMemoryCache class]]).to.beTruthy();
3939
}
4040

@@ -44,7 +44,7 @@ - (void)testCustomDiskCache {
4444
NSString *nameSpace = @"YYDiskCache";
4545
NSString *cacheDictionary = [self makeDiskCachePath:nameSpace];
4646
SDImageCache *cache = [[SDImageCache alloc] initWithNamespace:nameSpace diskCacheDirectory:cacheDictionary config:config];
47-
YYDiskCache *diskCache = cache.diskCache;
47+
id diskCache = cache.diskCache;
4848
expect([diskCache isKindOfClass:[YYDiskCache class]]).to.beTruthy();
4949
}
5050

0 commit comments

Comments
 (0)