-
Notifications
You must be signed in to change notification settings - Fork 642
Open
Description
Describe the bug
https://forums.swift.org/t/pitch-image-attachments-in-swift-testing/80867
swift-testing will add image attachment support soon.
Use the issue to track attachment support for swift-testing in this framework
Expected behavior
Show the diffed image attachment in Xcode or diffed image in console.
Additional context
swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift
Lines 458 to 470 in b198a56
| if !attachments.isEmpty { | |
| #if !os(Linux) && !os(Android) && !os(Windows) | |
| if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS"), | |
| !isSwiftTesting | |
| { | |
| XCTContext.runActivity(named: "Attached Failure Diff") { activity in | |
| attachments.forEach { | |
| activity.add($0) | |
| } | |
| } | |
| } | |
| #endif | |
| } |
ivan-gaydamakin, donnywdavis, tatsuz0u, theblixguy, AllDmeat and 12 more
Metadata
Metadata
Assignees
Labels
No labels