/TestingMacroCollection

A tool for native generation of template code for testing in Swift.

Primary LanguageSwiftApache License 2.0Apache-2.0

TestingMacroCollection

A tool for native generation of template code for testing in Swift.

Overview

Learn more about the tool in Wiki.

Performance

Starting with Xcode 16.4 (16F6) and Swift 6.1.1, you can use the prebuilt version of swift-syntax. To enable it, use the defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts YES command or the --enable-experimental-prebuilts parameter for CI builds.

The build time without cache for TestingMacroCollection is reduced by approximately 4x.

Requirements

TestingMacroCollection supports SPM, which is the recommended option. Xcode 15.0 and higher is required.

Languages and Versions

Version changes

Learn more in Changelog.

Documentation

Mock
AnyMockable
Arbitrary
AutoEquatable
PerformanceMeasure

Installation and build

TestingMacroCollection supports SPM, which is the recommended option. Xcode 15.0 and higher is required.