The Visual Perception of Code
My colleague Brent gave his first public talk at last month's Full Stack Antwerp meetup. If you weren't able to attend you'll be happy to learn to Brent made a YouTube video with the content of his talk.
Posts tagged with visual
My colleague Brent gave his first public talk at last month's Full Stack Antwerp meetup. If you weren't able to attend you'll be happy to learn to Brent made a YouTube video with the content of his talk.
Monica Dinculescu, an engineer at Google, shares on her blog how you can use Puppeteer, Mocha and Pixelmatch to create automated visual tests of a webpage.
I did a little song-and-dance that sets up Puppeteer* , takes screenshots of your app (like, all the routes you care about), and then compares them to the “golden” ones. If they match, your test passes! Yes, it only works on Chrome. No, it’s not actually unit testing. Yes, it’s literally just counting pixels but you know what? It counts them in both a wide and a narrow viewport size and any testing is better than no testing at all; fight me.
https://meowni.ca/posts/2017-puppeteer-tests/