Skip to content

Commit 910c1cb

Browse files
authored
Merge pull request #27 from rcaos/fix-snaptshot-tests
Fix snapshot tests
2 parents abceb18 + 785fde9 commit 910c1cb

File tree

69 files changed

+275
-193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+275
-193
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
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 = "AppFeature"
18+
BuildableName = "AppFeature"
19+
BlueprintName = "AppFeature"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<TestPlans>
31+
<TestPlanReference
32+
reference = "container:Tests/AppFeatureTests/AppFeature.xctestplan"
33+
default = "YES">
34+
</TestPlanReference>
35+
</TestPlans>
36+
</TestAction>
37+
<LaunchAction
38+
buildConfiguration = "Debug"
39+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
40+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
41+
launchStyle = "0"
42+
useCustomWorkingDirectory = "NO"
43+
ignoresPersistentStateOnLaunch = "NO"
44+
debugDocumentVersioning = "YES"
45+
debugServiceExtension = "internal"
46+
allowLocationSimulation = "YES">
47+
</LaunchAction>
48+
<ProfileAction
49+
buildConfiguration = "Release"
50+
shouldUseLaunchSchemeArgsEnv = "YES"
51+
savedToolIdentifier = ""
52+
useCustomWorkingDirectory = "NO"
53+
debugDocumentVersioning = "YES">
54+
<MacroExpansion>
55+
<BuildableReference
56+
BuildableIdentifier = "primary"
57+
BlueprintIdentifier = "AppFeature"
58+
BuildableName = "AppFeature"
59+
BlueprintName = "AppFeature"
60+
ReferencedContainer = "container:">
61+
</BuildableReference>
62+
</MacroExpansion>
63+
</ProfileAction>
64+
<AnalyzeAction
65+
buildConfiguration = "Debug">
66+
</AnalyzeAction>
67+
<ArchiveAction
68+
buildConfiguration = "Release"
69+
revealArchiveInOrganizer = "YES">
70+
</ArchiveAction>
71+
</Scheme>

App/TVToday.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */

App/TVToday.xcodeproj/xcshareddata/xcschemes/TVToday.xcscheme

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -28,86 +28,6 @@
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
31-
<TestableReference
32-
skipped = "NO">
33-
<BuildableReference
34-
BuildableIdentifier = "primary"
35-
BlueprintIdentifier = "AccountFeatureTests"
36-
BuildableName = "AccountFeatureTests"
37-
BlueprintName = "AccountFeatureTests"
38-
ReferencedContainer = "container:..">
39-
</BuildableReference>
40-
</TestableReference>
41-
<TestableReference
42-
skipped = "NO">
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "AiringTodayFeatureTests"
46-
BuildableName = "AiringTodayFeatureTests"
47-
BlueprintName = "AiringTodayFeatureTests"
48-
ReferencedContainer = "container:..">
49-
</BuildableReference>
50-
</TestableReference>
51-
<TestableReference
52-
skipped = "NO">
53-
<BuildableReference
54-
BuildableIdentifier = "primary"
55-
BlueprintIdentifier = "NetworkingTests"
56-
BuildableName = "NetworkingTests"
57-
BlueprintName = "NetworkingTests"
58-
ReferencedContainer = "container:..">
59-
</BuildableReference>
60-
</TestableReference>
61-
<TestableReference
62-
skipped = "NO">
63-
<BuildableReference
64-
BuildableIdentifier = "primary"
65-
BlueprintIdentifier = "PopularsFeatureTests"
66-
BuildableName = "PopularsFeatureTests"
67-
BlueprintName = "PopularsFeatureTests"
68-
ReferencedContainer = "container:..">
69-
</BuildableReference>
70-
</TestableReference>
71-
<TestableReference
72-
skipped = "NO">
73-
<BuildableReference
74-
BuildableIdentifier = "primary"
75-
BlueprintIdentifier = "SearchShowsFeatureTests"
76-
BuildableName = "SearchShowsFeatureTests"
77-
BlueprintName = "SearchShowsFeatureTests"
78-
ReferencedContainer = "container:..">
79-
</BuildableReference>
80-
</TestableReference>
81-
<TestableReference
82-
skipped = "NO">
83-
<BuildableReference
84-
BuildableIdentifier = "primary"
85-
BlueprintIdentifier = "ShowDetailsFeatureTests"
86-
BuildableName = "ShowDetailsFeatureTests"
87-
BlueprintName = "ShowDetailsFeatureTests"
88-
ReferencedContainer = "container:..">
89-
</BuildableReference>
90-
</TestableReference>
91-
<TestableReference
92-
skipped = "NO">
93-
<BuildableReference
94-
BuildableIdentifier = "primary"
95-
BlueprintIdentifier = "ShowListFeatureTests"
96-
BuildableName = "ShowListFeatureTests"
97-
BlueprintName = "ShowListFeatureTests"
98-
ReferencedContainer = "container:..">
99-
</BuildableReference>
100-
</TestableReference>
101-
<TestableReference
102-
skipped = "NO">
103-
<BuildableReference
104-
BuildableIdentifier = "primary"
105-
BlueprintIdentifier = "SharedTests"
106-
BuildableName = "SharedTests"
107-
BlueprintName = "SharedTests"
108-
ReferencedContainer = "container:..">
109-
</BuildableReference>
110-
</TestableReference>
11131
</Testables>
11232
</TestAction>
11333
<LaunchAction

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let package = Package(
3737
.package(url: "https://github.com/evgenyneu/keychain-swift.git", from: "14.0.0"),
3838
.package(url: "https://github.com/onevcat/Kingfisher.git", from: "7.9.1"),
3939
.package(url: "https://github.com/pointfreeco/combine-schedulers", .exactItem("0.5.3")),
40-
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.11.0")
40+
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.14.1")
4141
],
4242
targets: [
4343
.target(

Sources/AccountFeature/Presentation/Account/View/AccountViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AccountViewController: NiblessViewController {
3838
private func subscribe() {
3939
viewModel
4040
.viewState
41-
.receive(on: DispatchQueue.main)
41+
.receive(on: defaultScheduler)
4242
.sink(receiveCompletion: { _ in }, receiveValue: { [weak self] viewState in
4343
self?.setupUI(with: viewState)
4444
})

Sources/AccountFeature/Presentation/Profile/View/ProfileRootView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ProfileRootView: NiblessView {
8484
}
8585
return snapShot
8686
}
87-
.receive(on: DispatchQueue.main)
87+
.receive(on: defaultScheduler)
8888
.sink(receiveCompletion: { _ in }, receiveValue: { [weak self] snapshot in
8989
self?.dataSource?.apply(snapshot)
9090
})

Sources/AccountFeature/Presentation/Profile/View/ProfileViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ProfileViewController: NiblessViewController {
3434
viewModel
3535
.presentSignOutAlert
3636
.filter { $0 == true }
37-
.receive(on: DispatchQueue.main)
37+
.receive(on: defaultScheduler)
3838
.sink(receiveCompletion: { _ in }, receiveValue: { [weak self] _ in
3939
self?.showSignOutActionSheet()
4040
})

Sources/AccountFeature/Presentation/SignIn/View/SignInViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SignInViewController: NiblessViewController {
3434
fileprivate func subscribe() {
3535
viewModel
3636
.viewState
37-
.receive(on: DispatchQueue.main)
37+
.receive(on: defaultScheduler)
3838
.sink(receiveCompletion: { _ in }, receiveValue: { [weak self] state in
3939
self?.setupView(with: state)
4040
})

Sources/AiringTodayFeature/Presentation/View/AiringTodayRootView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class AiringTodayRootView: NiblessView, AiringTodayRootViewProtocol {
117117
snapShot.appendItems(entities, toSection: .shows)
118118
return snapShot
119119
}
120-
.receive(on: DispatchQueue.main)
120+
.receive(on: defaultScheduler)
121121
.sink(receiveCompletion: { _ in }, receiveValue: { [weak self] snapshot in
122122
self?.dataSource?.apply(snapshot)
123123
})

Sources/AiringTodayFeature/Presentation/View/AiringTodayRootViewCompositional.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class AiringTodayRootViewCompositional: NiblessView, AiringTodayRootViewProtocol
118118
snapShot.appendItems(entities, toSection: .shows)
119119
return snapShot
120120
}
121-
.receive(on: DispatchQueue.main)
121+
.receive(on: defaultScheduler)
122122
.sink(receiveCompletion: { _ in }, receiveValue: { [weak self] snapshot in
123123
self?.dataSource?.apply(snapshot)
124124
})

0 commit comments

Comments
 (0)