Runs BackstopJS against a serverless endpoint. Used in conjuction with serverless-backstopjs.
Read more about it here: The power of serverless: Visual regression tests from 20 minutes to 10 seconds
npm install serverless-backstopjs-runner
API_KEY=YOUR_API_KEY API_URL=YOUR_API_URL npx serverless-backstopjs-runner --config sample/sample_backstop_config.json --retries 2
View available parameters using npx serverless-backstopjs-runner -h
- You must create a sub-folder for your backstop config
- Every file inside this sub-folder will be serialized and sent to your endpoint
- Your endpoint will read it, write them to disk and run backstopjs
- Your associate scripts (e.g. onReadyScript) must be in this same sub-folder