From 1baf6308d83e67ca1f948172362b3ad2eebfb7fe Mon Sep 17 00:00:00 2001 From: PatStLouis Date: Wed, 4 Dec 2024 00:21:59 +0000 Subject: [PATCH] add dockerfile and dependencies Signed-off-by: PatStLouis --- Dockerfile | 10 ++++++++++ package.json | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bd63f6b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:18 + +WORKDIR /test-suite + +COPY package.json ./ +COPY tests/ ./tests +COPY config/ ./config + +RUN npm i +CMD [ "npm", "t" ] \ No newline at end of file diff --git a/package.json b/package.json index 490842a..2c7cf8d 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "scripts": { "test": "mocha tests/ --reporter @digitalbazaar/mocha-w3c-interop-reporter --reporter-options abstract=\"$PWD/config/abstract.hbs\",reportDir=\"$PWD/reports\",respec=\"$PWD/config/respec.json\",suiteLog='./suite.log',templateData=\"$PWD/reports/index.json\",title=\"Data Integrity BBS Interoperability Report 1.0\" --timeout 15000 --preserve-symlinks --timeout 30000", + "test-allure": "npx mocha tests/ -R allure-mocha -O 'resultsDir=allure-results'", "fetch-vc-di-test-vectors": "if [ ! -e tests/input/vc-di-bbs ]; then git clone --depth 1 https://github.com/w3c/vc-di-bbs.git tests/input/vc-di-bbs; fi", "lint": "eslint .", "postinstall": "npm run fetch-vc-di-test-vectors" @@ -55,14 +56,15 @@ "data-integrity-test-suite-assertion": "github:w3c-ccg/data-integrity-test-suite-assertion", "jsonld": "^8.3.2", "jsonld-document-loader": "^2.2.0", - "mocha": "^10.2.0", "uuid": "^9.0.0", "vc-test-suite-implementations": "github:w3c/vc-test-suite-implementations" }, "devDependencies": { + "allure-mocha": "^3.0.6", "eslint": "^8.52.0", "eslint-config-digitalbazaar": "^5.0.1", "eslint-plugin-jsdoc": "^46.8.2", - "eslint-plugin-unicorn": "^48.0.1" + "eslint-plugin-unicorn": "^48.0.1", + "mocha": "^11.0.1" } }