Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 947 Bytes

CONTRIBUTING.md

File metadata and controls

44 lines (32 loc) · 947 Bytes

Tests

Installation

$ git clone https://github.com/ringcentral/ringcentral-web-phone.git
$ npm install

Prerequisites

You need to have a file .env with at least two accounts and apps:

RC_WP_CALLER_USERNAME=+12223334455
RC_WP_CALLER_PASSWORD=xxx
RC_WP_CALLER_APPKEY=xxx
RC_WP_CALLER_APPSECRET=xxx
RC_WP_CALLER_SERVER=https://platform.devtest.ringcentral.com
RC_WP_RECEIVER_USERNAME=+12223334455
RC_WP_RECEIVER_PASSWORD=xxx
RC_WP_RECEIVER_APPKEY=xxx
RC_WP_RECEIVER_APPSECRET=xxx
RC_WP_RECEIVER_SERVER=https://platform.devtest.ringcentral.com
RC_WP_MOBILE_NUMBER=16502746490

Accounts and apps must meet requirements.

You may call from one environment to another.

Test run

Single test run:

$ npm test

Keep the browser open to manually refresh tests when needed (useful for debug):

$ npm run test-watch