Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dalenguyen/visual-regression-testing

This will capture images as a baseline for the first run, then compare with the images from the next run.
https://github.com/dalenguyen/visual-regression-testing

hacktoberfest regression-testing visual-regression-testing webdrivercss webdriverio

Last synced: 3 months ago
JSON representation

This will capture images as a baseline for the first run, then compare with the images from the next run.

Awesome Lists containing this project

README

        

# Visual Regression Test with WebDriverIO & WebDriverCSS

This will capture images as a baseline for the first run, and compare with the images from the next run.

This project is based on WebdriverIO, WebdriverCSS with Mocha Testing Framework and Spec reporting.

[WebDriverCSS](https://github.com/visualregressiontesting/webdrivercss) requires [GraphicsMagick](http://www.graphicsmagick.org/) for image processing, so remember to install it to your local machine before running any tests.

## Prerequisites

Install packages

```sh
npm install
```

## Getting Started

Run this command to run your test

```sh
npm test
```

The first time you run, it will create base images. The next time you run, it will create regression images. If there are any differents. It will be saved under screenshots/--/**diffs** folder.

## For Development

If you want run one test only, you can use

```sh
npm run dev path-to-file.js
```

## Reference

[WebDriverIO API](http://webdriver.io/api.html)
[Get Started with Visual Regression Testing and WebdriverIO](https://leanpub.com/visual-regression-testing-and-webdriverio-guide)