Skip to content

Commit

Permalink
Get rid of the dependency between TestTools and TestHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Nov 17, 2023
1 parent 938abe5 commit 1df651d
Show file tree
Hide file tree
Showing 44 changed files with 1,690 additions and 71 deletions.
2 changes: 2 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ excluded:
- Pods
- .build
- spm_cache
- vendor/bundle
- .ruby-lsp

disabled_rules:
- large_tuple
Expand Down
14 changes: 12 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ let package = Package(
targets: ["StreamChatTestMockServer"]
),
],
dependencies: [
.package(name: "Difference", url: "https://github.com/krzysztofzablocki/Difference.git", .exact("1.0.1")),
.package(name: "Swifter", url: "https://github.com/httpswift/swifter", .exact("1.5.0"))
],
targets: [
.target(
name: "StreamChat",
Expand All @@ -41,14 +45,20 @@ let package = Package(
),
.target(
name: "StreamChatTestTools",
dependencies: ["StreamChat"],
dependencies: [
"StreamChat",
.product(name: "Difference", package: "Difference")
],
path: "TestTools/StreamChatTestTools",
exclude: ["Info.plist"],
resources: [.process("Fixtures")]
),
.target(
name: "StreamChatTestMockServer",
dependencies: ["StreamChat"],
dependencies: [
"StreamChat",
.product(name: "Swifter", package: "Swifter")
],
path: "TestTools/StreamChatTestMockServer",
exclude: ["Info.plist"],
resources: [.process("Fixtures")]
Expand Down
147 changes: 105 additions & 42 deletions StreamChat.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Stream.io Inc. All rights reserved.
// Copyright © 2023 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion TestTools/StreamChatTestMockServer/Extensions/String.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © 2022 Stream.io Inc. All rights reserved.
// Copyright © 2023 Stream.io Inc. All rights reserved.
//

import XCTest
Expand Down
Loading

0 comments on commit 1df651d

Please sign in to comment.