From 2f97e5556630630b441efdd5d1e4aab2ef55f631 Mon Sep 17 00:00:00 2001 From: Nicu-Cosmin Ursache Date: Fri, 28 Oct 2022 12:08:59 +0300 Subject: [PATCH] adding tests --- octopus.json | 8 ++++---- package.json | 5 +++-- smoke-test-suites.json | 3 +++ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 smoke-test-suites.json diff --git a/octopus.json b/octopus.json index e31052e..c4f102b 100644 --- a/octopus.json +++ b/octopus.json @@ -113,10 +113,6 @@ "name": "dossier", "src": "https://github.com/privatesky/dossier.git" }, - { - "name": "zmq_adapter", - "src": "https://github.com/privatesky/zmq_adapter.git" - }, { "name": "loki-enclave-facade", "src": "https://github.com/OpenDSU/LokiEnclaveFacade.git" @@ -129,6 +125,10 @@ "name": "ssapp-middleware", "src": "https://github.com/privatesky/ssapp-middleware.git" }, + { + "name": "../tests", + "src": "https://github.com/OpenDSU/opendsu-sdk-tests.git" + }, { "name": "cleanup any unnecessary files after dep installation", "actions": [ diff --git a/package.json b/package.json index 7f26f89..f5069c4 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,10 @@ "update": "git pull && npm install", "build": "node ./bin/scripts/pskbuild.js --projectMap=./builds/build.json", "start": "node bin/scripts/serviceLauncher.js", - "tests": "echo 'no tests yet!!!'", + "tests": "npm run smoke-tests", "freeze": "node ./node_modules/octopus/scripts/freeze", - "tag-freeze": "node ./node_modules/octopus/scripts/tagFreeze.js" + "tag-freeze": "node ./node_modules/octopus/scripts/tagFreeze.js", + "smoke-tests": "npm run build && node ./psknode/bin/scripts/testrunner.js --config=./smoke-test-suites.json" }, "repository": { "type": "git", diff --git a/smoke-test-suites.json b/smoke-test-suites.json new file mode 100644 index 0000000..8b002f0 --- /dev/null +++ b/smoke-test-suites.json @@ -0,0 +1,3 @@ +{ + "testDirs": ["./tests", "./modules/opendsu/tests"] +}