@o3world/backstopjs

A commandline utility and node server to assist in creating drupal backstop tests

Usage no npm install needed!

<script type="module">
  import o3worldBackstopjs from 'https://cdn.skypack.dev/@o3world/backstopjs';
</script>

README

backstop-starter-kit

A stupid simple starter kit for getting started running backstop tests.

Run your first test in one command

git clone https://github.com/o3world/backstop-starter-kit.git && cd backstop-starter-kit && npm install && node backstop.js reference && node backstop.js test

Usage

  1. Clone this repo and cd into it. Run:

npm install

  1. Generate a reference of o3world.com:

node backstop.js reference

  1. Generate a test of o3world.com dev:

node backstop.js test

Options

Override reference or test urls node backstop.js test --referenceUrl=https://o3world.com --testUrl=https://dev-o3-world.pantheonsite.io

Config

See config.js.