0.1.0
First release of swift-fixture — a macro for generating fixture data in tests.
Added
@Fixturemacro that synthesizes astatic func fixture(...)factory with a default for every stored property (override only what a test needs), and also synthesizes the type'sFixtureconformance so nested@Fixturetypes compose automatically. Works on structs and enums.@FixtureCaseto mark which enum casestatic var fixtureshould use, overriding the default of the first declared case.@FixtureValue(_:)to override the default value@Fixtureuses for an individual stored property.Fixtureprotocol with built-in conformances for common standard-library and Foundation types.- Opt-in package traits for first-class fixtures of external types:
Tagged(pointfree's swift-tagged) andIdentifiedCollections(pointfree's swift-identified-collectionsIdentifiedArray). - DocC documentation, published on the Swift Package Index.