GitXplorerGitXplorer
d

hello-country-react-backstopjs

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
9e8b8efea3b617cdf4aaa628ffb749e05f9a7b11

Merge remote-tracking branch 'origin/master'

ddmitryvinn committed 6 years ago
Unverified
97faa5d162e53086e3a9ad4531689b6245e584c5

Initial update of Backstopjs for demo app

ddmitryvinn committed 6 years ago
Verified
4a7ff6fab79886cb1a49a44ec07d2981b2ec05dd

Update README.md

ddmitryvinn committed 6 years ago
Unverified
bd85f777fb8acf5968890d49cc9bc47849125585

Initial update of Backstopjs for demo app

ddmitryvinn committed 6 years ago

README

The README file for this repository.

Visual Testing of Hello World React app with BackstopJs

Overview

This project is an example of Visual Testing with BackstopJs. In this example, we focus on testing of the demo app built with React (Hello Country).

To start using BackstopJs, install it using npm:

$ npm install -g backstopjs

After installing, initialize the testing project and then run your tests:

$ backstop init
$ backstop test

After running your test the first time, you will need to approve the screenshots using backstop approve.

Note: In this particular project, backstop operations are wrapped with npm.

npm BackstopJs
npm start backstop init
npm test backstop test ---config<pathToTestFile>
npm run approve backstop approve --config=src/tests/backstop.json

Example Results

The test results are organized in a report similar to the one below:

Figure 1
Figure 1, Example Report from BackstopJs