azure-cosmos-js/test
Steve Faulkner e8d1621901
Fix bug where offset limit iterator was being called for each item under the offset count (#398)
2019-08-07 09:30:21 -05:00
..
common Remove AuthOptions (#339) 2019-06-11 16:19:24 -04:00
functional Fix offer test 2019-07-16 15:25:57 -05:00
integration Fix bug where offset limit iterator was being called for each item under the offset count (#398) 2019-08-07 09:30:21 -05:00
types Convert to TS project references. Extract test folder (#270) 2019-03-19 10:29:27 -07:00
unit Fix browser atob errors (#363) 2019-07-02 10:36:27 -07:00
readme.md Convert to TS project references. Extract test folder (#270) 2019-03-19 10:29:27 -07:00
tsconfig.json Convert to TS project references. Extract test folder (#270) 2019-03-19 10:29:27 -07:00
tslint.json Convert to TS project references. Extract test folder (#270) 2019-03-19 10:29:27 -07:00

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