Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BackstopJS installation instructions #4

Open
cleverington opened this issue Oct 10, 2018 · 2 comments
Open

Add BackstopJS installation instructions #4

cleverington opened this issue Oct 10, 2018 · 2 comments

Comments

@cleverington
Copy link
Owner

cleverington commented Oct 10, 2018

Installation (global): npm install -g backstopjs
Installation (local): npm install --save-dev backstopjs

Configuration: backstop init (Creates backston.json template)

@cleverington
Copy link
Owner Author

cleverington commented Oct 10, 2018

Commands

  • backstop reference - Create a series of baseline/reference images for future tests to be conducted against
  • backstop test - Take a new series of screenshots and compare them to the reference set, then open a report
  • backstop accept - Use the last set of screenshots as the new reference, accepting them as the new canonical version to test against
  • backstop approve - Promotes all test bitmaps from last test run to reference bitmaps
  • backstop openReport - View the last test report in your browser

@cleverington
Copy link
Owner Author

cleverington commented Oct 10, 2018

Extras

  • Backstop Crawl
  • Backstop Generator - https://www.drupal.org/project/backstop_generator/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant