e8d1621901 | ||
---|---|---|
.. | ||
common | ||
functional | ||
integration | ||
types | ||
unit | ||
readme.md | ||
tsconfig.json | ||
tslint.json |
readme.md
Follow these instructions to run the tests locally.
Prerequisites
-
Clone Azure/azure-documentdb-node repository Please clone the source and tests from https://github.com/Azure/azure-documentdb-node
-
Install Node.js and npm https://docs.npmjs.com/getting-started/installing-node
-
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
- Remove documentdb, if previously installed
npm remove documentdb
- Install documentdb
npm install source
- Change to
test
directory
cd test
- Run the tests
mocha -t 0 -R spec