Skip to content

liammcmurray/visual-regression-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Regression Testing

This is all based on https://leanpub.com/visual-regression-testing-and-webdriverio-guide/read


Running Visual Regression Tests

  1. Install node.js:
  1. Install GraphicsMagick
  • On Mac, using homebrew $ brew install graphicsmagick
  • On Windows, http://www.graphicsmagick.org/download.html
  • On Linux, sudo yum install GraphicsMagick
  1. Run npm install

  2. Install Selenium server locally:

  • ./node_modules/.bin/selenium-standalone install
  1. Start your server with: -./node_modules/.bin/selenium-standalone start

  2. Write your tests in javascript

  • (look at origins.js,login.js,tests.js in root of project folder)
  1. Run:
  • node origins.js
  • This assumes you have a local version of the Explore page at http://localhost/explore
  • To see an assertion pick up an error, make a visual change to the <head> section on that page and re-run the test.

Further Reading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published