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:
// 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:
|Last commit: 2 weeks ago|
Some basic faking types:
FakeMethodCallfaking method calls on a type
FakePropertyfaking properties on a type
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics