azure-cosmos-js/test
Christopher Anderson 1d02323eeb
resolve credscan warnings (#414)
2019-08-20 14:55:22 -07:00
..
common Add test for aborting a query (#413) 2019-08-20 12:44:33 -05:00
functional Add test for aborting a query (#413) 2019-08-20 12:44:33 -05:00
integration Add test for aborting a query (#413) 2019-08-20 12:44:33 -05:00
types Convert to TS project references. Extract test folder (#270) 2019-03-19 10:29:27 -07:00
unit resolve credscan warnings (#414) 2019-08-20 14:55:22 -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