verify
fun verify(component: ViddikComponent, snapshotsDir: File = defaultSnapshotsDir, reportsDir: File = defaultReportsDir, tolerancePercent: Double = component.tolerancePercent
?: System.getProperty(TOLERANCE_PERCENT_PROPERTY)?.toDoubleOrNull()
?: DEFAULT_TOLERANCE_PERCENT, channelTolerance: Int = System.getProperty(CHANNEL_TOLERANCE_PROPERTY)?.toIntOrNull() ?: DEFAULT_CHANNEL_TOLERANCE, minMismatchedPixels: Int = System.getProperty(MIN_MISMATCHED_PIXELS_PROPERTY)?.toIntOrNull() ?: DEFAULT_MIN_MISMATCHED_PIXELS, floorChannelDelta: Int = System.getProperty(FLOOR_CHANNEL_DELTA_PROPERTY)?.toIntOrNull() ?: DEFAULT_FLOOR_CHANNEL_DELTA, record: Boolean = recordMode, force: Boolean = forceRecordMode)
Renders the fixture and compares it against its golden — or, under VIDDIK_RECORD_MODE, writes that golden (record, recordGolden).
record and force are parameters and not only the environment variable and the viddik.forceRecord property they default to, so that the two modes are reachable from a test without setting an environment variable for the JVM that is running it.