enantiom

2.2.0 • Public • Published

enantiom logo

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 npm install

Tool development

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

React console development

$ npm run dev --config example/enantiom.config.json
$ npm run site:dev

Feature TODOs

  • Debug mode
  • Reuse browser object option

Readme

Keywords

none

Package Sidebar

Install

npm i enantiom

Weekly Downloads

1

Version

2.2.0

License

MIT

Unpacked Size

486 kB

Total Files

50

Last publish

Collaborators

  • airtoxin