Skip to content

Commit

Permalink
code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mackoj committed Oct 13, 2023
1 parent edaed1d commit 6593402
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Showcase/ShowcaseSnapshotTests/VitaminTestCase.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Foundation
import XCTest
import SnapshotTesting

class VitaminTestCase: XCTestCase {
// The percentage a pixel must match the source pixel to be considered a match. [98-99% mimics the precision of the human eye.](http://zschuessler.github.io/DeltaE/learn/#toc-defining-delta-e)
var perceptualPrecision: Float = 0.99

override class func setUp() {
// Helix Visual Merge Tool (P4Merge) is a versatile tool for three-way merging and side-by-side file comparisons. It's useful for visualizing merges, accessing detailed file histories, and comparing a wide range of image and text files.
// You can find more about it here: https://www.perforce.com/products/helix-core-apps/merge-diff-tool-p4merge
// We're using this free tool to simplify the process of diffing two image or text files.
// To use it effectively, make sure to have P4Merge installed on your system.
SnapshotTesting.diffTool = "/Applications/p4merge.app/Contents/MacOS/p4merge"

// In order to update the test fixture you just have to un comment the code below then recomment it before commit.
// SnapshotTesting.isRecording = true
}
}

0 comments on commit 6593402

Please sign in to comment.