Skip to content
/ jpr Public

A Jasmine-Phantom-Resemble module to implement a matcher that can compare images and/or snapshots.

License

Notifications You must be signed in to change notification settings

sushantbs/jpr

Repository files navigation

jpr

A Jasmine-Phantom-Resemble module to implement a matcher that can compare images and/or snapshots.

Usage

Assuming that phantomjs has been installed, JPR.js can be used in the following ways after cloning the repo and going to root folder

  1. To run ALL specs

    node bin/jpr
    

    Executes all the specs provided in the config.json and compares the generated images to the reference images.

  2. To run a specific spec

  • Run a specific spec

    node bin/jpr --specFile [path/to/spec/file]
    

    Executes only the specified spec file

  • Run a specific spec and compare with a specific image

    node bin/jpr --specFile [path/to/spec/file] --imageFile [path/to/image/file]
    

    Executes the given spec and compares the generated image to the given image file.

About

A Jasmine-Phantom-Resemble module to implement a matcher that can compare images and/or snapshots.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published