diff options
author | Alex Shatov <alexs@att.com> | 2017-09-27 18:51:43 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2017-09-27 18:51:43 -0400 |
commit | a2ffa33f55ae178e91df119aa19d2bede35d083f (patch) | |
tree | 67fd5579f3a8a599093f8b6cf12648766ce7b826 /package.json | |
parent | f7f1ab925d8e9e81cb28f4bc3f5ae2be8bdf5f98 (diff) |
51% unit test of the deployment-handler
* only unit testing the /policy/components at the moment
* use -f Dockerfile_UT when building the image
* unit test runs inside docker container
* after docker run finishes copy the logs and coverage folder
from docker container. Sample commands:
docker cp test_deployment_handler:/opt/app/dh test_logs/
docker logs test_deployment_handler > \
test_logs/$(date +%Y_%m%d-%H%M%S)_test_deployment_handler.log 2>&1
Change-Id: I77276550e2ffb7094e02ffa20741afac6bfea96f
Issue-Id: DCAEGEN2-62
Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/package.json b/package.json index ec38a72..b6215cf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "DCAE-Orch-Deployment-Handler", - "version": "4.2.0", - "description": "DCAE Orchestrator Deployment Handler", + "name": "onap-dcae-deployment-handler", + "version": "4.2.1", + "description": "ONAP DCAE Deployment Handler", "main": "deployment-handler.js", "dependencies": { "adm-zip": "^0.4.7", @@ -12,9 +12,17 @@ "uuid": "^3.0.1", "yamljs": "latest" }, - "devDependencies": {}, + "devDependencies": { + "chai": "^4.1.2", + "chai-http": "^3.0.0", + "istanbul": "^0.4.5", + "mocha": "^3.5.3", + "nock": "^9.0.21" + }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "mocha --reporter spec tests/", + "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec tests/", + "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot tests/" }, "author": "author", "license": "(Apache-2.0)" |