Service API Integration Test Showcase
- Install Node.js >= v0.10.25 and npm
- Install all node package dependencies:
$ npm install- Run directly with mocha (example):
# Run all tests against production
$ ./node_modules/.bin/mocha test/sample# Run all tests in specific test file
# Use environment variable to specify if use proxy or not
# By default, proxy is off
$ NODE_CONFIG='{"proxy":"http://127.0.0.1:8888"}' ./node_modules/.bin/mocha test/sample/sample.js