brainsum/qashot-compare

Modified version of BackstopJS (3.9.2) Compare React app

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

Language:JavaScript

1.0.12 2019-02-27 15:58 UTC

This package is auto-updated.

Last update: 2024-10-25 21:34:38 UTC


README

Modified version of BackstopJS Compare React app.

Development

Rename config.js.example to config.js in "output" folder.

To develop the React project run...

npm run dev-compare

To build the React project run...

npm run build-compare

This will generate /output/index_bundle.js.

/output/index_bundle.js contains all styles and js for the HTML report. In normal BackstopJS operation his file bundle will be copied into the correct HTML report directory during a test flow (e.g. when running backstop test) after bitmap generation has completed. See: /core/command/report.js writeBrowserReport() method for details on this mechanism.

Note: The files diverged.js & diff.js are copied from node_modules to /output/ during build.