Skip to content

Commit 49a7e71

Browse files
authored
If no tool is used, print absolute path so you can click on the filepaths in xcode to navigate to the output (#675)
1 parent a02ef9a commit 49a7e71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SnapshotTesting/AssertSnapshot.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public func verifySnapshot<Value, Format>(
249249
? """
250250
Record mode is on. Turn record mode off and re-run "\(testName)" to test against the newly-recorded snapshot.
251251
252-
open "\(snapshotFileUrl.path)"
252+
open "\(snapshotFileUrl.absoluteString)"
253253
254254
Recorded snapshot: …
255255
"""
@@ -302,9 +302,9 @@ public func verifySnapshot<Value, Format>(
302302
.map { "\($0) \"\(snapshotFileUrl.path)\" \"\(failedSnapshotFileUrl.path)\"" }
303303
?? """
304304
@\(minus)
305-
"\(snapshotFileUrl.path)"
305+
"\(snapshotFileUrl.absoluteString)"
306306
@\(plus)
307-
"\(failedSnapshotFileUrl.path)"
307+
"\(failedSnapshotFileUrl.absoluteString)"
308308
309309
To configure output for a custom diff tool, like Kaleidoscope:
310310

0 commit comments

Comments
 (0)