0.2.1 • Published 6 years ago

percy-node v0.2.1

Weekly downloads
84
License
MIT
Repository
github
Last release
6 years ago

Build Status

percy-node

This is a wrapper of percy-js that simplifies the API so it can be used for automated visual regression testing in node environments such as testing an express app, an Angular app, or AngularJS app.

For more general information about Percy, visit Percy's homepage

This is not an official Google product.

How to use

Percy-node is an installable npm package.

npm install percy-node --save-dev

Feature

Percy-node provides an optional feature to return Percy build results. Passing 'true' to finalizeBuild() to enable that feature. You also need a token with read access, please reach out to the Percy team for that.

const percyNodeClient = require('percy-node');
percyNodeClient.finalizeBuild(true);

Motivation

This package was originally created specifically to allow testing of Express AngularJS apps tested with Jasmine, Karma, and Protractor. However, it is written in a general enough way that it could be used in another node based testing environment.

How to use with Protractor

See the Protractor guide

Contributing

See CONTRIBUTING.md