azure-cosmos-js/test
Steve Faulkner bff1cb90a6
Fix Aggregate Request Charge (#366)
2019-07-09 14:50:54 -05:00
..
common Remove AuthOptions (#339) 2019-06-11 16:19:24 -04:00
functional Parse connection string for options object (#350) 2019-06-21 17:44:16 -04:00
integration Fix Aggregate Request Charge (#366) 2019-07-09 14:50:54 -05:00
types
unit Fix browser atob errors (#363) 2019-07-02 10:36:27 -07:00
readme.md
tsconfig.json
tslint.json

readme.md

Follow these instructions to run the tests locally.

Prerequisites

  1. Clone Azure/azure-documentdb-node repository Please clone the source and tests from https://github.com/Azure/azure-documentdb-node

  2. Install Node.js and npm https://docs.npmjs.com/getting-started/installing-node

  3. Install mocha package globally

npm install -g mocha

Running the tests

Using your command-line tool, from the root of your local copy of azure-documentdb-node repository: If you are contributing changes and submitting PR then you need to ensure that you run the tests against your local copy of the source, and not the published npm package.

If you just want to run the tests against the published npm package then skip steps #1 & #2 proceed directly to step #3

  1. Remove documentdb, if previously installed

npm remove documentdb

  1. Install documentdb

npm install source

  1. Change to test directory

cd test

  1. Run the tests

mocha -t 0 -R spec