TestKit is a Swift package to make testing with XCTest a tiny bit more ergonomic. It's an extraction of my personal set of testing utils so I don't have to copy-pasta them across projects.
Currently, TestKit is only available as a Swift Package.
Open the Package.swift file and edit it:
dependencies
array.// swift-tools-version:5.3
import PackageDescription
let package = Package(
// ...snip...
dependencies: [
.package(url: "https://github.com/andyfinnell/TestKit.git", from: "0.0.1")
],
targets: [
.target(name: "MyTarget", dependencies: ["TestKit"])
]
)
Then build to pull down the dependencies:
$ swift build
Use the Swift Packages tab on the project to add TestKit:
link |
Stars: 0 |
Last commit: 2 weeks ago |
Some basic faking types:
FakeMethodCall
faking method calls on a typeFakeProperty
faking properties on a typeSwiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics