mugshot

Framework independent visual testing library

MIT License

Downloads
112
Stars
137
Committers
9

Bot releases are hidden (Show)

mugshot - PixelDiffer options Latest Release

Published by NiGhTTraX over 5 years ago

New features

  • PixelDiffer is now a class and can accept a config object through the constructor.
  • The following options can now be configured for PixelDiffer:
    • threshold: specifies the maximum difference between 2 pixels,
    • diffColor: sets the color used to mark differing pixels.
mugshot - Rename baseline -> expected and new -> actual

Published by NiGhTTraX over 5 years ago

Breaking changes

  • MugshotDiffResult
    • baseline and baselinePath have been renamed to expected and expectedPath
  • file names
    • ${name}.new.png is now ${name}.actual.png
mugshot -

Published by NiGhTTraX over 5 years ago

New features

  • Ignoring elements - you can now pass an { ignore: '.selector' } option to the check method and the first element matched by that selector will be painted black. A future release will see more options like ignoring all elements matched by the selectors, multiple selectors, ignoring areas and custom colors.
mugshot - Rewrite in modern TypeScript

Published by NiGhTTraX over 5 years ago

giphy

Breaking changes

  • The API is exclusively Promise based.
  • The Browser interface (Mugshot's first constructor param) has been changed.
  • rootDirectory has been made mandatory and moved to the 2nd argument in the constructor.
  • acceptFirstBaseline renamed to createBaselines.
  • test renamed to check.
  • result.isEqual renamed to result.matches.
  • result.screenshot renamed to actual.

Changes

  • Everything is written in TS with classes and interfaces.
  • Monorepo!
  • looks-same has been replaced with pixelmatch.
  • png-crop has been replaced with jimp.
  • fs has been replaced with fs-extra.
  • Full coverage.

giphy (1)

mugshot - v0.3.0

Published by valentin-radulescu-hs over 8 years ago

  • upgrade to webdriverIO 4
  • add linting rules
  • enforce unique selectors