Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 1.31 KB

README.md

File metadata and controls

74 lines (47 loc) · 1.31 KB

percy-web

Build status

Percy's frontend web application, built with Ember.

Setup

First, install yarn.

Then, run:

yarn
bower install

Run server

PERCY_DEV_MIRAGE=yes npm run start

Then, access http://localhost:4200

Using local API server

Edit /etc/hosts to add a local hostname (required):

# Add this to /etc/hosts:
127.0.0.1  dev.percy.local

Then, run:

npm run start

Using the production API

First, add the dev.percy.local hostname above. Then, two environment variables must be set:

export PERCY_WEB_AUTH_TOKEN=...
export PERCY_WEB_API_HOST=https://percy.io

npm run start

PERCY_WEB_AUTH_TOKEN is a full-access user token, different than the normal project PERCY_TOKEN.

Then, access http://dev.percy.local:4200

Run tests

npm test

Or, visit http://dev.percy.local:4200/tests.

Or, to run in ember test --server mode:

npm run test:server

Run tests locally with Percy enabled

PERCY_TOKEN=... PERCY_PROJECT=percy/percy-web npm test