Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pix-diff

koola4.1kMIT2.0.1

Protractor plugin for image comparison

image-diff, image-comparison, protractor, blink-diff, screenshot, pix, diff, difference, comparison, compare

readme

Pix-Diff

A lightweight protractor plugin for image comparison

dependencies Status Build Status Sauce Test Status npm version

Sauce Test Status

What can it do?

Pix-Diff is a lightweight Protractor plugin for image comparisons on (mobile/desktop) browsers and hybrid app screens or screen regions.

You can:

  • Compare screens / regions against a baseline
  • Pass-through any non-default Pixel-diff options
  • Seamlessly compare desktop and mobile screens

Comparisons are based on Pixel-Diff

Installation

Install this module locally with the following command:

npm install pix-diff

Save to dependencies or dev-dependencies:

npm install --save pix-diff
npm install --save-dev pix-diff

Usage

Pix-Diff can be used for:

  • Desktop browsers (Chrome / Firefox / Safari / Internet Explorer 11 / Microsoft Edge)
  • Mobile browsers (Chrome / Safari on simulators / real devices) via Appium

Refer to docs for conventions and examples.

Tests

  • npm test: Execute jshint, unit and local tests.

Local

  • npm test -- local: Run all tests on a local machine with Chrome and Firefox.

Be sure to first run npm run wd-update to update the webdriver at least once after install.

Sauce Labs

  • npm test -- saucelabs: This command is used to test the build on Travis-ci. It runs a variety of desktop and mobile browser Continuous Integration tests.

Contributing

See the contributing guide for more information. In lieu of a formal style guide, take care to maintain the existing coding style. Add tests for any new or changed functionality. Lint and test your code using npm test -- build

TODO

  • <input disabled="" type="checkbox"> Enable FF after #4253 is fixed

License

Licensed under the MIT license.

Copyright (c) 2017 Koola.

changelog

2.0.1 (2017-06-18)

Bug Fixes

2.0.0 (2017-01-13)

1.2.1 (2017-01-11)

Bug Fixes

  • code: add firefox support (ad035fe)
  • code: default load when framework is undefined (0e8b0eb)

Features

  • checkPage: ability to check page (ae4ff86)
  • savePage: ability to save page (5d4e6f2)

1.2.0 (2016-12-07)

Features

  • threshold: add blinkdiff threshold getters (3a3ff8e)

1.1.16 (2016-11-17)

1.1.15 (2016-11-17)

1.0.14 (2016-10-13)

1.0.13 (2016-09-23)

1.0.12 (2016-09-01)

1.0.11 (2016-08-23)

1.0.10 (2016-05-17)

1.0.9 (2016-04-22)

1.0.8 (2016-04-19)

1.0.7 (2015-12-17)

1.0.6 (2015-11-04)

1.0.5 (2015-07-10)

1.0.4 (2014-12-30)

1.0.3 (2014-12-28)

1.0.2 (2014-12-17)

1.0.1 (2014-12-12)

1.0.0 (2014-12-11)