Skip to content

Screenshot comparison using node, puppeteer and blink-diff

Notifications You must be signed in to change notification settings

benudall/screenshot-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot-comparison

Screenshot comparison using node, puppeteer and blink-diff

Regression Usage

Run with

$ node regression [URL]

If there's no baseline file it will create it in a baseline folder If there is a baseline it will create a comparison image in the output folder

Create Custom Test Suites

Example

const regression = require("./regression-export");

(async () => {
	await regression.init();
	await regression.test("http://example.com");
	await regression.test("http://google.com");
	await regression.test("http://wikipedia.org");
	await regression.end();
})();

Compare Usage

$ node regression [URL1] [URL2]

Will save images for both URLs and create diff.png to show the difference

About

Screenshot comparison using node, puppeteer and blink-diff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published