2.2.0 • Published 3 years ago

enantiom v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm version GA test License: MIT

All-in-one web page screenshot testing tool.

console

✨ Features

  • Take screenshot and compare with previous one
  • Create static HTML report
  • Change browser type / screen size
  • Browser scripting

📦 Usage

Install the cli via NPM:

npm i -g enantiom

Install the cli via Yarn:

yarn global add enantiom

Create enantiom.config.json.

{
  "artifact_path": "./dist",
  "screenshots": [
    "https://example.com",
    "https://time.is"
  ]
}

Then, run enantiom cli with config option.

$ enantiom --config enantiom.config.json

One more time, run same command to calculate pixel diff from previous result.

$ enantiom --config enantiom.config.json

Static result report output to dist directory.
Open it!

$ npx serve dist

⚙ Config

examples are exists in example directory.

Development

Setup: just run yarn

Tool development

$ yarn build
$ yarn link
$ enantiom --config example/enantiom.config.json --no-html

React console development

$ yarn dev --config example/enantiom.config.json
$ yarn site:dev

Feature TODOs

  • Debug mode
  • Non-top-level artifact_path
  • Reuse browser object option