azure-cosmos-js/test
Steve Faulkner 48d2496761
Remove node builtin usage in favor of universal packages/APIs (#328)
* Remove node builtin usage in favor of universal packages/APIs

* make node 8 happy

* Run consumer tests

* Extract build

* Script refactor

* Fix typo

* Add more typescript versions

* Update gitignore

* Add test for getUserAgent
2019-05-31 14:01:13 -04:00
..
common Partition Key Changes (#308) 2019-05-21 14:50:54 -04:00
functional Remove partitionKey from RequestOptions (#322) 2019-05-29 22:20:17 -04:00
integration Remove node builtin usage in favor of universal packages/APIs (#328) 2019-05-31 14:01:13 -04:00
types Convert to TS project references. Extract test folder (#270) 2019-03-19 10:29:27 -07:00
unit Remove node builtin usage in favor of universal packages/APIs (#328) 2019-05-31 14:01:13 -04: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