BackstopJS icon indicating copy to clipboard operation
BackstopJS copied to clipboard

Using git LFS to store the images result in empty image in report

Open dodozhang21 opened this issue 4 years ago • 4 comments

After I ran the test using github action and have it commit the reports to the repo. I used github pages to load the report but the report has 1x1 pixel image for everything. I highly suspect this is related to the fact I use git LFS to store my images. The same test run is fine locally.

Any idea how to resolve this issue? image

Thanks

dodozhang21 avatar Jul 02 '21 19:07 dodozhang21

one idea is to go thru config.js changes and update every image using https://gist.github.com/fkraeutli/66fa741d9a8c2a6a238a01d17ed0edc5 :/

dodozhang21 avatar Jul 02 '21 20:07 dodozhang21

Do the images get correctly saved? Are you able to view the report if you download the repo?

garris avatar Jul 03 '21 01:07 garris

@garris yes the images are correctly saved. I can read the report when I download it. I've added a script to update image reference to the correct path for the server but it works half of the time

dodozhang21 avatar Jul 14 '21 18:07 dodozhang21

GitHub Pages doesn't support Git LFS: https://github.com/git-lfs/git-lfs/issues/4235

edvardsniedre avatar Aug 10 '21 13:08 edvardsniedre