File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,7 @@ open class SnapshotTestCase: XCTestCase {
63
63
case . cgImageCreeationFailed:
64
64
return " Failed to create a `CGImage` of current snapshot. "
65
65
case . recordModeIsOn:
66
- return """
67
- Recording mode is on.
68
- Turn recording mode off and re-run the test with the newly-recorded reference.
69
- """
66
+ return " Recording mode is on. "
70
67
}
71
68
}
72
69
}
@@ -255,7 +252,10 @@ open class SnapshotTestCase: XCTestCase {
255
252
}
256
253
#endif
257
254
258
- throw Error . recordModeIsOn
255
+ XCTFail ( """
256
+ \( Error . recordModeIsOn. localizedDescription)
257
+ Turn recording mode off and re-run the \( testName) test with the newly-recorded reference.
258
+ """ )
259
259
} else {
260
260
let data : Data
261
261
#if targetEnvironment(simulator)
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = "SwiftSnapshotTesting"
3
- s . version = "0.1.0 "
3
+ s . version = "0.1.1 "
4
4
5
5
s . summary = "Swift Snapshot Testing"
6
6
s . homepage = "https://github.com/eugenebokhan/SwiftSnapshotTesting"
You can’t perform that action at this time.
0 commit comments