From d24d357fdd91dc7169cea19245d746d7c98dddc0 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 26 Jul 2018 10:43:35 -0300 Subject: [PATCH 1/2] Updated test search path so mocha can find test.ts files. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bd449ae5..f9ae2381 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "startIde": "npm-run-all clean --parallel watch:build watch:server --print-label", "watch:build": "tsc --watch", "watch:server": "nodemon './dist/index.js' --watch './dist'", - "test": "mocha -r ts-node/register src/**/*.test.ts", + "test": "mocha -r ts-node/register deploy/**/*.test.ts", "build-docs": "typedoc --options typedoc.json src/" }, "engines": { From 5251689da05d7b6c538f2b3a634f0953090a24a7 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 26 Jul 2018 10:51:46 -0300 Subject: [PATCH 2/2] Updated documentation about running tests. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 86e0d163..006828db 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,11 @@ Note: * Whenever you are ready to turn your open-source bot ideas in form of .gbapp (source-code) and artifacts like .gbkb, .gbtheme, .gbot or the .gbai full package read [CONTRIBUTING.md](https://github.com/pragmatismo-io/BotServer/blob/master/CONTRIBUTING.md) about performing Pull Requests (PR) and creating other public custom packages repositories of your own personal or organization General Bot Community Edition powered packages. +### Running unit tests + +1. Enter the BotServer root folder. +2. Run tests by `npm test`. + ### Just copy the source code to your machine 1. [Download] the Zip file of (https://codeload.github.com/pragmatismo-io/BotServer/zip/master)