Build Information
Successful build of swift-snapshot-testing, reference main (4ee19e), with Swift 6.3 for macOS (SPM) on 15 Apr 2026 16:05:59 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mihai8804858/swift-snapshot-testing.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mihai8804858/swift-snapshot-testing
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4ee19ec Merge branch 'main' into main
Cloned https://github.com/mihai8804858/swift-snapshot-testing.git
Revision (git rev-parse @):
4ee19ec0d8af7a3fce0a3f961fef71f0c7c1edd2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mihai8804858/swift-snapshot-testing.git at main
Fetching https://github.com/swiftlang/swift-syntax
[1/74972] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (4.06s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.0-prerelease-2024-06-12 (7.50s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.0-prerelease-2024-06-12
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-snapshot-testing",
"name": "swift-snapshot-testing",
"url": "https://github.com/mihai8804858/swift-snapshot-testing.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-snapshot-testing",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/swiftlang/swift-syntax",
"version": "600.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/mihai8804858/swift-snapshot-testing.git
[1/3413] Fetching swift-snapshot-testing
Fetched https://github.com/mihai8804858/swift-snapshot-testing.git from cache (1.85s)
Fetching https://github.com/swiftlang/swift-syntax from cache
Fetched https://github.com/swiftlang/swift-syntax from cache (0.82s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (1.62s)
Creating working copy for https://github.com/mihai8804858/swift-snapshot-testing.git
Working copy of https://github.com/mihai8804858/swift-snapshot-testing.git resolved at main (4ee19ec)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
warning: '.resolve-product-dependencies': dependency 'swift-snapshot-testing' is not used by any target
Found 1 product dependencies
- swift-syntax
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/mihai8804858/swift-snapshot-testing.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/13] Write sources
[11/13] Compiling _SwiftSyntaxCShims dummy.c
[12/13] Write swift-version--6988338F2F200930.txt
[14/51] Emitting module SwiftSyntax600
[15/51] Compiling SwiftSyntax600 Empty.swift
[16/51] Emitting module SwiftSyntax509
[17/51] Compiling SwiftSyntax509 Empty.swift
[18/51] Emitting module SwiftSyntax510
[19/51] Compiling SwiftSyntax510 Empty.swift
[20/115] Compiling SwiftSyntax AbsolutePosition.swift
[21/115] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[22/115] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[23/115] Compiling SwiftSyntax Assert.swift
[24/115] Compiling SwiftSyntax BumpPtrAllocator.swift
[25/115] Compiling SwiftSyntax CommonAncestor.swift
[26/115] Compiling SwiftSyntax Convenience.swift
[27/115] Compiling SwiftSyntax SyntaxArena.swift
[28/115] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[29/115] Compiling SwiftSyntax SyntaxChildren.swift
[30/115] Compiling SwiftSyntax SyntaxCollection.swift
[31/115] Compiling SwiftSyntax SyntaxHashable.swift
[32/115] Compiling SwiftSyntax SyntaxIdentifier.swift
[33/115] Compiling SwiftSyntax SyntaxNodeStructure.swift
[34/122] Emitting module SwiftSyntax
[35/122] Compiling SwiftSyntax Tokens.swift
[36/122] Compiling SwiftSyntax TriviaPieces.swift
[37/122] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[38/122] Compiling SwiftSyntax RawSyntaxNodesC.swift
[39/122] Compiling SwiftSyntax RawSyntaxNodesD.swift
[40/122] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[41/122] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[42/122] Compiling SwiftSyntax SyntaxProtocol.swift
[43/122] Compiling SwiftSyntax SyntaxText.swift
[44/122] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[45/122] Compiling SwiftSyntax TokenDiagnostic.swift
[46/122] Compiling SwiftSyntax TokenSequence.swift
[47/122] Compiling SwiftSyntax TokenSyntax.swift
[48/122] Compiling SwiftSyntax Trivia.swift
[49/122] Compiling SwiftSyntax RawSyntaxTokenView.swift
[50/122] Compiling SwiftSyntax SourceEdit.swift
[51/122] Compiling SwiftSyntax SourceLength.swift
[52/122] Compiling SwiftSyntax SourceLocation.swift
[53/122] Compiling SwiftSyntax SourcePresence.swift
[54/122] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[55/122] Compiling SwiftSyntax Syntax.swift
[56/122] Compiling SwiftSyntax SyntaxCollections.swift
[57/122] Compiling SwiftSyntax SyntaxEnum.swift
[58/122] Compiling SwiftSyntax SyntaxKind.swift
[59/122] Compiling SwiftSyntax SyntaxRewriter.swift
[60/122] Compiling SwiftSyntax SyntaxTraits.swift
[61/122] Compiling SwiftSyntax SyntaxVisitor.swift
[62/122] Compiling SwiftSyntax TokenKind.swift
[63/122] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[64/122] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[65/122] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[66/122] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[67/122] Compiling SwiftSyntax RawSyntaxValidation.swift
[68/122] Compiling SwiftSyntax SyntaxNodesAB.swift
[69/122] Compiling SwiftSyntax SyntaxNodesC.swift
[70/122] Compiling SwiftSyntax SyntaxNodesD.swift
[71/122] Compiling SwiftSyntax SyntaxNodesEF.swift
[72/122] Compiling SwiftSyntax SyntaxNodesGHI.swift
[73/122] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[74/122] Compiling SwiftSyntax SyntaxNodesOP.swift
[75/122] Compiling SwiftSyntax SyntaxNodesQRS.swift
[76/122] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[77/122] Compiling SwiftSyntax CustomTraits.swift
[78/122] Compiling SwiftSyntax Identifier.swift
[79/122] Compiling SwiftSyntax MemoryLayout.swift
[80/122] Compiling SwiftSyntax MissingNodeInitializers.swift
[81/122] Compiling SwiftSyntax RawSyntax.swift
[82/122] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[83/122] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[84/122] Compiling SwiftSyntax Utils.swift
[85/122] Compiling SwiftSyntax ChildNameForKeyPath.swift
[86/122] Compiling SwiftSyntax Keyword.swift
[87/122] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[88/122] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[89/122] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[90/122] Compiling SwiftSyntax SyntaxBaseNodes.swift
[91/180] Compiling SwiftDiagnostics Message.swift
[92/181] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[93/181] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[94/181] Compiling SwiftDiagnostics Note.swift
[95/181] Compiling SwiftDiagnostics FixIt.swift
[96/181] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[97/181] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[98/181] Compiling SwiftDiagnostics BasicDiagnosticDecorator.swift
[99/181] Compiling SwiftDiagnostics ANSIDiagnosticDecorator.swift
[100/181] Compiling SwiftDiagnostics Diagnostic.swift
[101/181] Compiling SwiftDiagnostics Convenience.swift
[102/181] Emitting module SwiftDiagnostics
[103/181] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[104/181] Compiling SwiftBasicFormat Syntax+Extensions.swift
[105/181] Compiling SwiftBasicFormat InferIndentation.swift
[106/181] Emitting module SwiftBasicFormat
[107/181] Compiling SwiftBasicFormat BasicFormat.swift
[108/181] Compiling SwiftParser UnicodeScalarExtensions.swift
[109/181] Compiling SwiftParser Lookahead.swift
[110/181] Compiling SwiftParser LoopProgressCondition.swift
[111/181] Compiling SwiftParser Modifiers.swift
[112/181] Compiling SwiftParser Names.swift
[113/185] Compiling SwiftParser TopLevel.swift
[114/185] Compiling SwiftParser TriviaParser.swift
[115/185] Compiling SwiftParser Types.swift
[116/185] Compiling SwiftParser ExperimentalFeatures.swift
[117/185] Compiling SwiftParser TokenConsumer.swift
[118/185] Compiling SwiftParser TokenPrecedence.swift
[119/185] Compiling SwiftParser TokenSpec.swift
[120/185] Compiling SwiftParser TokenSpecSet.swift
[121/185] Compiling SwiftParser StringLiterals.swift
[122/185] Compiling SwiftParser SwiftParserCompatibility.swift
[123/185] Compiling SwiftParser SwiftVersion.swift
[124/185] Compiling SwiftParser SyntaxUtils.swift
[125/185] Compiling SwiftParser Nominals.swift
[126/185] Compiling SwiftParser Parameters.swift
[127/185] Compiling SwiftParser ParseSourceFile.swift
[128/185] Compiling SwiftParser Parser.swift
[129/185] Compiling SwiftParser Patterns.swift
[130/185] Compiling SwiftParser Recovery.swift
[131/185] Compiling SwiftParser Specifiers.swift
[132/185] Compiling SwiftParser Statements.swift
[133/185] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[134/185] Emitting module SwiftParser
[135/185] Compiling SwiftParser Attributes.swift
[136/185] Compiling SwiftParser Availability.swift
[137/185] Compiling SwiftParser CharacterInfo.swift
[138/185] Compiling SwiftParser CollectionNodes+Parsable.swift
[139/185] Compiling SwiftParser Declarations.swift
[140/185] Compiling SwiftParser Cursor.swift
[141/185] Compiling SwiftParser Lexeme.swift
[142/185] Compiling SwiftParser LexemeSequence.swift
[143/185] Compiling SwiftParser Lexer.swift
[144/185] Compiling SwiftParser RegexLiteralLexer.swift
[145/185] Compiling SwiftParser Directives.swift
[146/185] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[147/185] Compiling SwiftParser Expressions.swift
[148/185] Compiling SwiftParser IncrementalParseTransition.swift
[149/185] Compiling SwiftParser IsValidIdentifier.swift
[150/185] Compiling SwiftParser IsLexerClassified.swift
[151/185] Compiling SwiftParser LayoutNodes+Parsable.swift
[152/185] Compiling SwiftParser Parser+TokenSpecSet.swift
[153/185] Compiling SwiftParser TokenSpecStaticMembers.swift
[154/198] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[155/199] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[156/199] Compiling SwiftParserDiagnostics Utils.swift
[157/199] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[158/199] Compiling SwiftParserDiagnostics PresenceUtils.swift
[159/199] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[160/199] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[161/199] Compiling SwiftParserDiagnostics MissingNodesError.swift
[162/199] Compiling SwiftParserDiagnostics MissingTokenError.swift
[163/199] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[164/199] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[165/199] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[166/199] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[167/199] Emitting module SwiftParserDiagnostics
[168/214] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[169/214] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[170/214] Compiling SwiftSyntaxBuilder Indenter.swift
[171/214] Compiling SwiftSyntaxBuilder ListBuilder.swift
[179/217] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[180/217] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[181/217] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[182/217] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[183/217] Compiling SnapshotTesting UIView.swift
[184/217] Compiling SnapshotTesting UIViewController.swift
[185/217] Compiling SnapshotTesting URLRequest.swift
[189/217] Emitting module SnapshotTesting
[200/217] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[201/217] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[205/218] Emitting module SwiftSyntaxBuilder
[210/218] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[215/218] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[216/218] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[217/218] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[218/218] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[219/221] Compiling InlineSnapshotTesting Exports.swift
[220/221] Compiling InlineSnapshotTesting AssertInlineSnapshot.swift
[221/221] Emitting module InlineSnapshotTesting
Build complete! (24.18s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "601.0.0-prerelease"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
}
],
"manifest_display_name" : "swift-snapshot-testing",
"name" : "swift-snapshot-testing",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SnapshotTesting",
"targets" : [
"SnapshotTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InlineSnapshotTesting",
"targets" : [
"InlineSnapshotTesting"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SnapshotTestingTests",
"module_type" : "SwiftTarget",
"name" : "SnapshotTestingTests",
"path" : "Tests/SnapshotTestingTests",
"sources" : [
"AssertSnapshotSwiftTests.swift",
"DeprecationTests.swift",
"RecordTests.swift",
"SnapshotTestingTests.swift",
"SnapshotsTraitTests.swift",
"SwiftTestingTests.swift",
"TestHelpers.swift",
"WaitTests.swift",
"WithSnapshotTestingTests.swift"
],
"target_dependencies" : [
"SnapshotTesting"
],
"type" : "test"
},
{
"c99name" : "SnapshotTesting",
"module_type" : "SwiftTarget",
"name" : "SnapshotTesting",
"path" : "Sources/SnapshotTesting",
"product_memberships" : [
"SnapshotTesting",
"InlineSnapshotTesting"
],
"sources" : [
"AssertSnapshot.swift",
"Async.swift",
"Common/Internal.swift",
"Common/PlistEncoder.swift",
"Common/String+SpecialCharacters.swift",
"Common/View.swift",
"Common/XCTAttachment.swift",
"Diff.swift",
"Diffing.swift",
"Extensions/Wait.swift",
"Internal/Deprecations.swift",
"Internal/RecordIssue.swift",
"SnapshotTestingConfiguration.swift",
"SnapshotsTestTrait.swift",
"Snapshotting.swift",
"Snapshotting/Any.swift",
"Snapshotting/CALayer.swift",
"Snapshotting/CGPath.swift",
"Snapshotting/CaseIterable.swift",
"Snapshotting/Data.swift",
"Snapshotting/Encodable.swift",
"Snapshotting/NSBezierPath.swift",
"Snapshotting/NSImage.swift",
"Snapshotting/NSView.swift",
"Snapshotting/NSViewController.swift",
"Snapshotting/SceneKit.swift",
"Snapshotting/SpriteKit.swift",
"Snapshotting/String.swift",
"Snapshotting/SwiftUIView.swift",
"Snapshotting/UIBezierPath.swift",
"Snapshotting/UIImage.swift",
"Snapshotting/UIView.swift",
"Snapshotting/UIViewController.swift",
"Snapshotting/URLRequest.swift"
],
"type" : "library"
},
{
"c99name" : "InlineSnapshotTestingTests",
"module_type" : "SwiftTarget",
"name" : "InlineSnapshotTestingTests",
"path" : "Tests/InlineSnapshotTestingTests",
"sources" : [
"AssertInlineSnapshotSwiftTests.swift",
"InlineSnapshotTestingTests.swift"
],
"target_dependencies" : [
"InlineSnapshotTesting"
],
"type" : "test"
},
{
"c99name" : "InlineSnapshotTesting",
"module_type" : "SwiftTarget",
"name" : "InlineSnapshotTesting",
"path" : "Sources/InlineSnapshotTesting",
"product_dependencies" : [
"SwiftParser",
"SwiftSyntax",
"SwiftSyntaxBuilder"
],
"product_memberships" : [
"InlineSnapshotTesting"
],
"sources" : [
"AssertInlineSnapshot.swift",
"Exports.swift"
],
"target_dependencies" : [
"SnapshotTesting"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/mihai8804858/swift-snapshot-testing/main
Repository: mihai8804858/swift-snapshot-testing
Swift version used: 6.3
Target: SnapshotTesting
Extracting symbol information for 'SnapshotTesting'...
Finished extracting symbol information for 'SnapshotTesting'. (60.06s)
Building documentation for 'SnapshotTesting'...
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:94:9-94:13
92 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
93 | /// which this function was called.
94 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
95 | /// which this function was called.
96 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:146:9-146:13
144 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
145 | /// which this function was called.
146 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
147 | /// which this function was called.
148 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:190:9-190:13
188 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
189 | /// which this function was called.
190 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
191 | /// which this function was called.
192 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:268:9-268:13
266 | /// directory `__Snapshots__` that sits next to your test file.
267 | /// - timeout: The amount of time a snapshot must be generated in.
268 + /// - file: The file in which failure occurred. Defaults to the file name of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
269 | /// which this function was called.
270 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: Parameter 'fileID' is missing documentation
--> ../AssertSnapshot.swift:273:29-273:29
271 | /// the test case in which this function was called.
272 | /// - line: The line number on which failure occurred. Defaults to the line number on which this
273 + /// function was called.
274 | /// - Returns: A failure message or, if the value matches, nil.
275 | public func verifySnapshot<Value, Format>(
warning: Parameter 'column' is missing documentation
--> ../AssertSnapshot.swift:273:29-273:29
271 | /// the test case in which this function was called.
272 | /// - line: The line number on which failure occurred. Defaults to the line number on which this
273 + /// function was called.
| ╰─suggestion: Document 'column' parameter
274 | /// - Returns: A failure message or, if the value matches, nil.
275 | public func verifySnapshot<Value, Format>(
warning: 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting/IntegratingWithTestFrameworks'
--> Articles/IntegratingWithTestFrameworks.md:21:7-21:69
19 |
20 | However, these details have all been hidden away in the SnapshotTesting library. You can simply
21 + use ``assertSnapshot(of:as:named:record:timeout:file:testName:line:)`` in either an `XCTestCase`
22 | subclass _or_ `@Test`, and it will dynamically detect what context it is running in and trigger
23 | the correct test failure:
warning: No symbol matched 'SnapshotTesting/assertSnapshot(of:as:named:record:timeout:file:testName:line:)'. 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting'.
--> Extensions/AssertSnapshot.md:1:3-1:85
1 + # ``SnapshotTesting/assertSnapshot(of:as:named:record:timeout:file:testName:line:)``
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(of:as:named:record:timeout:fileID:file:testName:line:column:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(matching:as:named:record:timeout:file:testName:line:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(matching:as:named:record:snapshotDirectory:timeout:file:testName:line:)'
| ╰─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(of:as:named:record:snapshotDirectory:timeout:fileID:file:testName:line:column:)'
2 |
3 | ## Topics
warning: No symbol matched 'SnapshotTesting/Testing/Trait/snapshots(diffTool:record:)'. 'snapshots(diffTool:record:)' doesn't exist at '/SnapshotTesting/Testing/Trait'.
--> Extensions/SnapshotsTrait.md:1:3-1:64
1 + # ``SnapshotTesting/Testing/Trait/snapshots(diffTool:record:)``
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(record:diffTool:)'
| ╰─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(_:)'
2 |
3 | ### Configuration
warning: 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting'
--> SnapshotTesting.md:9:5-9:67
7 | ### Essentials
8 |
9 + - ``assertSnapshot(of:as:named:record:timeout:file:testName:line:)``
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(of:as:named:record:timeout:fileID:file:testName:line:column:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(matching:as:named:record:timeout:file:testName:line:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(matching:as:named:record:snapshotDirectory:timeout:file:testName:line:)'
| ╰─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(of:as:named:record:snapshotDirectory:timeout:fileID:file:testName:line:column:)'
10 | - <doc:IntegratingWithTestFrameworks>
11 | - <doc:MigrationGuides>
warning: 'snapshots(diffTool:record:)' doesn't exist at '/SnapshotTesting/Testing/Trait'
--> SnapshotTesting.md:22:19-22:46
20 | ### Configuration
21 |
22 + - ``Testing/Trait/snapshots(diffTool:record:)``
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(record:diffTool:)'
| ╰─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(_:)'
23 | - ``withSnapshotTesting(record:diffTool:operation:)-2kuyr``
24 | - ``SnapshotTestingConfiguration``
warning: 'snapshots(diffTool:record:)' doesn't exist at '/SnapshotTesting/Testing/Trait'
--> ../SnapshotTestingConfiguration.swift:8:23-8:50
6 | ///
7 | /// > Note: To customize tests when using Swift's native Testing library, use the
8 + /// > ``Testing/Trait/snapshots(diffTool:record:)`` trait.
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(record:diffTool:)'
| ╰─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(_:)'
9 | ///
10 | /// For example, to specify to put an entire test class in record mode you do the following:
Finished building documentation for 'SnapshotTesting' (0.58s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mihai8804858/swift-snapshot-testing/main
Fetching https://github.com/swiftlang/swift-docc-plugin
Updating https://github.com/swiftlang/swift-syntax
[1/2277] Fetching swift-docc-plugin
Updated https://github.com/swiftlang/swift-syntax (0.91s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.13s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.6 (1.87s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.06s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.81s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.0-prerelease-2024-06-12 (0.76s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version--6988338F2F200930.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit GenericConstraint.swift
[8/57] Compiling SymbolKit GenericParameter.swift
[9/57] Compiling SymbolKit Generics.swift
[10/57] Compiling SymbolKit Namespace.swift
[11/57] Compiling SymbolKit Mixin+Equals.swift
[12/57] Compiling SymbolKit Mixin+Hash.swift
[13/57] Compiling SymbolKit Mixin.swift
[14/57] Compiling SymbolKit LineList.swift
[15/57] Compiling SymbolKit Position.swift
[16/57] Compiling SymbolKit Relationship.swift
[17/57] Compiling SymbolKit RelationshipKind.swift
[18/57] Compiling SymbolKit SourceOrigin.swift
[19/57] Compiling SymbolKit GenericConstraints.swift
[20/57] Compiling SymbolKit Swift.swift
[21/57] Compiling SymbolKit SourceRange.swift
[22/57] Compiling SymbolKit Metadata.swift
[23/57] Compiling SymbolKit Module.swift
[24/57] Compiling SymbolKit OperatingSystem.swift
[25/57] Compiling SymbolKit Platform.swift
[26/57] Compiling Snippets Snippet.swift
[27/57] Compiling Snippets SnippetParser.swift
[28/57] Emitting module Snippets
[29/57] Compiling SymbolKit Names.swift
[30/57] Compiling SymbolKit SPI.swift
[31/57] Compiling SymbolKit Snippet.swift
[32/57] Compiling SymbolKit Extension.swift
[33/57] Compiling SymbolKit Symbol.swift
[34/57] Compiling SymbolKit SymbolKind.swift
[35/57] Compiling SymbolKit SymbolGraph.swift
[36/57] Compiling SymbolKit GraphCollector.swift
[37/57] Compiling SymbolKit Identifier.swift
[38/57] Compiling SymbolKit KindIdentifier.swift
[39/57] Compiling SymbolKit Location.swift
[40/57] Compiling SymbolKit Mutability.swift
[41/57] Compiling SymbolKit SemanticVersion.swift
[42/57] Compiling SymbolKit AccessControl.swift
[43/57] Compiling SymbolKit Availability.swift
[44/57] Compiling SymbolKit AvailabilityItem.swift
[45/57] Compiling SymbolKit Domain.swift
[46/57] Compiling SymbolKit DeclarationFragments.swift
[47/57] Compiling SymbolKit Fragment.swift
[48/57] Compiling SymbolKit FragmentKind.swift
[49/57] Compiling SymbolKit FunctionParameter.swift
[50/57] Compiling SymbolKit FunctionSignature.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.08s)
Building for debugging...
[0/1] Write swift-version--6988338F2F200930.txt
Build of target: 'SnapshotTesting' complete! (0.30s)
Target: InlineSnapshotTesting
Extracting symbol information for 'InlineSnapshotTesting'...
Finished extracting symbol information for 'InlineSnapshotTesting'. (0.50s)
Building documentation for 'InlineSnapshotTesting'...
warning: External name 'file' used to document parameter
--> ../AssertInlineSnapshot.swift:28:11-28:15
26 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
27 | /// which this function was called.
28 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
29 | /// which this function was called.
30 | /// - function: The function where the assertion occurs. The default is the name of the test
warning: 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' doesn't exist at '/InlineSnapshotTesting/InlineSnapshotSyntaxDescriptor'
--> ../AssertInlineSnapshot.swift:220:7-220:109
218 | ///
219 | /// Provide this structure when defining custom snapshot functions that call
220 + /// ``assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)``
221 | /// under the hood.
222 | public struct InlineSnapshotSyntaxDescriptor: Hashable {
warning: External name 'file' used to document parameter
--> ../AssertInlineSnapshot.swift:287:13-287:17
285 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case
286 | /// in which this function was called.
287 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
288 | /// which this function was called.
289 | /// - line: The line number on which failure occurred. Defaults to the line number on which
warning: 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' doesn't exist at '/InlineSnapshotTesting'
--> InlineSnapshotTesting.md:71:5-71:107
69 | ### Essentials
70 |
71 + - ``assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)``
| ╰─suggestion: Replace 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' with 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:fileID:file:function:line:column:)'
72 |
73 | ### Writing a custom helper
Finished building documentation for 'InlineSnapshotTesting' (0.07s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mihai8804858/swift-snapshot-testing/main
Building for debugging...
[0/3] Write swift-version--6988338F2F200930.txt
Build of product 'snippet-extract' complete! (0.31s)
Building for debugging...
[0/1] Write swift-version--6988338F2F200930.txt
Build of target: 'InlineSnapshotTesting' complete! (0.32s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mihai8804858/swift-snapshot-testing/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mihai8804858/swift-snapshot-testing/main/linkable-paths.json
388
4 /Users/admin/builder/spi-builder-workspace/.docs/mihai8804858/swift-snapshot-testing/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/mihai8804858/swift-snapshot-testing/main
File count: 388
Doc size: 4.0MB
Preparing doc bundle ...
Uploading prod-mihai8804858-swift-snapshot-testing-main-cd02bb0d.zip to s3://spi-docs-inbox/prod-mihai8804858-swift-snapshot-testing-main-cd02bb0d.zip
Copying... [16%]
Copying... [24%]
Copying... [31%]
Copying... [47%]
Copying... [55%]
Copying... [63%]
Copying... [71%]
Copying... [87%]
Copying... [94%]
Copying... [100%]
Done.