Sample project that demonstrates how you can write regression tests for Watson Assistant
- Create an .env file in the root folder with the following content
- ASSISTANT_URL= Watson Assistant API URL, e.g. https://gateway-fra.watsonplatform.net/assistant/api for Germany region
- ASSISTANT_USERNAME= Watson Assistent - Instance Username
- ASSISTANT_PASSWORD= Watson Assistent - Instance Password
- ASSISTANT_WORKSPACEID= Watson Assistent - WorkspaceID you want to leverage
- ASSISTANT_VERSION = Watson Assistant - API Version to be used, e.g. 2018-02-16
- Run npm install to fetch the development dependencies
- test folder contains all the mocha test files, one file per intent
- workspace folder contains the current version of the Watson Assistant workspace, recommended as backup mechanism in general
Run all tests or just one:
- npm test
- npm test test/.js