Giter Club home page Giter Club logo

wraith_tests's Introduction

Wraith Tests

Maintainers: jbickar, sherakama

Changelog.txt

Installation

brew install phantomjs
brew install imagemagick
brew install casperjs --devel
gem install wraith

See "Other Resources" below for more in-depth installation instructions.

Usage

Setting Up a New Project

  1. Copy a recently-committed directory to a new location at the root of the repo (e.g., cp -r registrar newproject)
  2. Edit newproject/configs/config.yaml to update the domains and paths to what you want for your new project.
  3. Edit newproject/configs/history.yaml to update the domains and paths to what you want for your new project.
  4. Optionally, edit the screen_widths and other settings

Running Visual Regression Tests of a Site Across Two Environments

  1. cd myproject
  2. wraith capture config (config is the name of the YML file in the configs directory. You could name it foo.yaml and then run wraith capture foo.)
  3. open shots/gallery.html
  4. Review the screenshots in gallery.html for differences

Note: If you want to increase the timeout, add the following line to your config.yaml file:

before_capture: "../../timeout.js"

Running Visual Regression Tests of a Site Against A Historical Baseline

  1. cd myproject
  2. wraith history history to establish a baseline set of screenshots (history is the name of the YML file in the configs directory. You could name it foo.yaml and then run wraith history foo.)
  3. wraith latest history to compare the latest versions against the baseline.
  4. open shots/gallery.html
  5. Review the screenshots in gallery.html for differences

Other Resources

Fix for SSL errors and self signed certificates

https://gist.github.com/sherakama/986c546f1dade4626b61#file-save_images-rb-L42

wraith_tests's People

Contributors

jbickar avatar kmakitan avatar minorwm avatar sherakama avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.