You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewImageDeviationException("The deviation of the taken screenshot is too low (" . $deviationResult["deviation"] . "%).\nSee $compareScreenshotPath for a deviation screenshot.",
80
88
$this->getExpectedScreenshotPath($identifier),
81
89
$this->getScreenshotPath($identifier),
@@ -102,6 +110,12 @@ public function dontSeeVisualChanges($identifier, $elementID = null, $excludeEle
102
110
if ($deviationResult["deviation"] > $this->maximumDeviation) {
thrownewImageDeviationException("The deviation of the taken screenshot is too hight (" . $deviationResult["deviation"] . "%).\nSee $compareScreenshotPath for a deviation screenshot.",
106
120
$this->getExpectedScreenshotPath($identifier),
107
121
$this->getScreenshotPath($identifier),
@@ -110,22 +124,12 @@ public function dontSeeVisualChanges($identifier, $elementID = null, $excludeEle
referenceImageDir: /home/codeception/referenceImages/ # Path to the reference folder (optional, standard is
48
48
# <datadir>/VisualCeption/)
49
49
maximumDeviation: 5# deviation in percent
50
+
saveCurrentImageIfFailure: true # if true, VisualCeption saves the current
51
+
# image in debug dir (default: false)
50
52
```
51
53
52
54
***referenceImageDir** VisualCeption uses an "old" image for calculating the deviation. These images have to be stored in the system. This is the corresponding directory.
53
-
* **maximumDeviation** When comparing two images the deviation will be calculated. If this deviation is greater than the maximum deviation the test will fail.
55
+
***maximumDeviation** When comparing two images the deviation will be calculated. If this deviation is greater than the maximum deviation the test will fail.
56
+
***saveCurrentImageIfFailure** When the test fails, the current image will be saved too, so it's easier to change the reference image with this one. The image will appear beside the compare image with the prefix "current."
0 commit comments