Your first BackstopJS test
There are only a few commands between you and a successful first test. Yay!
From the command line, globally install BackstopJS.
Check that it installed successfully.
Make a directory to store your project.
Enter that directory.
Initialize a new BackstopJS project in that directory.
Navigate to your IDE of choice and open your project directory there. You'll have two things in there: a directory called backstop_data and a file called backstop.json.
Want to learn more about json? I like this resource.
Open the backstop.json file. There are two fields you need to change here. Update the value of "label" to a title of your choice and the value of "URL" to the address of the site you're testing. For example:
To create reference images:
To create test images and an HTML report:
To approve your test images:
Last updated
Was this helpful?