chore(sds): use allure reporting (#2255)

This commit is contained in:
Danish Arora 2025-02-11 00:56:00 +05:30 committed by GitHub
parent 053e4901e7
commit becb46f3a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 3 deletions

3
package-lock.json generated
View File

@ -41501,8 +41501,11 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@waku/build-utils": "*",
"allure-commandline": "^2.27.0",
"allure-mocha": "^2.9.2",
"cspell": "^8.6.1",
"fast-check": "^3.19.0",
"mocha-multi-reporters": "^1.5.1",
"npm-run-all": "^4.1.5",
"rollup": "^4.12.0"
},

View File

@ -0,0 +1,6 @@
{
"reporterEnabled": "spec, allure-mocha",
"allureMochaReporter": {
"outputDir": "allure-results"
}
}

View File

@ -15,10 +15,10 @@ if (process.env.CI) {
console.log("Running tests in parallel");
config.parallel = true;
config.jobs = 6;
console.log("Using JSON reporter for test results");
config.reporter = 'json';
console.log("Activating allure reporting");
config.reporter = 'mocha-multi-reporters';
config.reporterOptions = {
output: 'reports/mocha-results.json'
configFile: '.mocha.reporters.json'
};
} else {
console.log("Running tests serially. To enable parallel execution update mocha config");

View File

@ -66,8 +66,11 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@waku/build-utils": "*",
"allure-commandline": "^2.27.0",
"allure-mocha": "^2.9.2",
"cspell": "^8.6.1",
"fast-check": "^3.19.0",
"mocha-multi-reporters": "^1.5.1",
"npm-run-all": "^4.1.5",
"rollup": "^4.12.0"
},