Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

google/percy-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Important notice of archive

Hi there friend. The team at Google that originally started this package is no longer using Percy and thus it will no longer be maintained. For that reason, we'll be moving this to the archive. If you'd like to take ownership of it, feel free to fork it.

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