tacoss / testcafe-blink-diff

Visual regression for Testcafé
64 stars 15 forks source link

Generate diff image more reliably #64

Closed gabrielrobert closed 6 months ago

gabrielrobert commented 6 months ago

For some unknown reason, the out.png file was not reliably created. Sometimes the file was there, sometimes not. Sometimes it was an unopenable file, sometimes not. I took a look at the pixelmatch documentation and saw their preferred way to generate the diff image. I tried it in testcafe-blink-diff and it worked without reliability problems.