Skip to content

Commit

Permalink
Merge pull request #1 from claucambra/feature/testing
Browse files Browse the repository at this point in the history
Add test suite
  • Loading branch information
claucambra committed May 17, 2024
2 parents 635ee0d + ea46ad1 commit fa8bee3
Show file tree
Hide file tree
Showing 32 changed files with 4,382 additions and 555 deletions.
18 changes: 17 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ let package = Package(
),
.package(url: "https://github.com/nextcloud/NextcloudKit", .upToNextMajor(from: "2.9.9")),
.package(url: "https://github.com/realm/realm-swift.git", .upToNextMajor(from: "10.33.0")),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand All @@ -33,8 +34,23 @@ let package = Package(
.product(name: "NextcloudCapabilitiesKit", package: "NextcloudCapabilitiesKit"),
.product(name: "NextcloudKit", package: "NextcloudKit"),
.product(name: "RealmSwift", package: "realm-swift")]),
.target(
name: "TestInterface",
dependencies: [
"NextcloudFileProviderKit",
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOWebSocket", package: "swift-nio")
],
path: "Tests/Interface"),
.testTarget(
name: "TestInterfaceTests",
dependencies: ["NextcloudFileProviderKit", "TestInterface"],
path: "Tests/InterfaceTests"
),
.testTarget(
name: "NextcloudFileProviderKitTests",
dependencies: ["NextcloudFileProviderKit"]),
dependencies: ["NextcloudFileProviderKit", "TestInterface"]),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import FileProvider
import Foundation
import NextcloudKit
import OSLog
import RealmSwift

Expand Down
Loading

0 comments on commit fa8bee3

Please sign in to comment.