https://github.com/ozontech/testingmacrocollection
A tool for native generation of template code for testing in Swift.
https://github.com/ozontech/testingmacrocollection
mock snapshot-tests swift swiftmacro unit-tests
Last synced: 7 months ago
JSON representation
A tool for native generation of template code for testing in Swift.
- Host: GitHub
- URL: https://github.com/ozontech/testingmacrocollection
- Owner: ozontech
- License: apache-2.0
- Created: 2025-09-02T14:14:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-09-11T13:59:31.000Z (8 months ago)
- Last Synced: 2025-09-11T16:35:12.493Z (8 months ago)
- Topics: mock, snapshot-tests, swift, swiftmacro, unit-tests
- Language: Swift
- Homepage:
- Size: 158 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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](CHANGELOG.md).
## Documentation
[Mock](Docs/Mock.md)
[AnyMockable](Docs/AnyMockable.md)
[Arbitrary](Docs/Arbitrary.md)
[AutoEquatable](Docs/AutoEquatable.md)
[PerformanceMeasure](Docs/PerformanceMeasure.md)
# Installation and build
TestingMacroCollection supports SPM, which is the recommended option. Xcode 15.0 and higher is required.