项目作者: programmerqeu

项目描述 :
Example BackstopJS test environment with a included Vagrantfile and Dockerfile for testing purpose.
高级语言: JavaScript
项目地址: git://github.com/programmerqeu/backstopjs-example.git
创建时间: 2017-05-05T20:45:27Z
项目社区:https://github.com/programmerqeu/backstopjs-example

开源协议:MIT License

下载


backstopjs-example

Example BackstopJS test environment with a included Vagrantfile and Dockerfile for testing purpose.

Build Status

Say what? BackstopJS automates visual regression testing of your responsive web UI by comparing DOM screenshots over time.

Features:

  • Preconfigured test environment to play araound with BackstopJS
  • Example tests an references.
  • Detailed in-browser reports.
  • CI Integration with JUnit reports.

Run with Vagrant

I recommend this way, cause if you don’t like it, you didn’t mess up your system.

  1. vagrant up

Run with Docker

May you prefer Dockern rather then Vagrant, then I recommend this way. Because if you don’t like it, you didn’t mess up your system.

  1. docker run -it --rm -v "$PWD":/backstopjs-example --name backstopjs-example-container vergissberlin/backstopjs-example bash

Installation without Vagrant and Docker

If you don’t wanna use Vagrant, you have to install the dependencies on your own. Please install phantomjs and the node packages like that:

  1. sudo npm i backstopjs phantomjs slimerjs -g
  2. cd backstop-example && npm i

Let’s get testing

  1. backstopjs test
  2. backstopjs references

For furhter informations, take a look on the BackstopJS GitHub page.