digitalbazaar / mocha-w3c-interop-reporter

Mocha W3C Interoperability Test Suite reporter
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Use template packages over CLI commands #4

Open aljones15 opened 2 years ago

aljones15 commented 2 years ago

Instead of having to pass in tons of CLI commands for templates such as

 "test": "mocha tests/ --require esm --reporter ./node_modules/mocha-w3c-interop-reporter/index.js --reporter-options body=\"$PWD/body.hbs\",matrix=\"$PWD/matrix.hbs\",reportDir=\"$PWD/reports\",      respec=\"$PWD/respecConfig.json\",title=\"Ed25519Signature 2020 Interoperability Report 1.0\",suiteLog='./suite.log' --timeout 15000"

you could pass in a single option for a package with templates:

 "test": "mocha tests/ --require esm --reporter ./node_modules/mocha-w3c-interop-reporter/index.js --reporter-options template="@digitalbazaar/crypto-suite-report-template",reportDir=\"$PWD/reports\", respec=\"$PWD/respecConfig.json\", title=\"Ed25519Signature 2020 Interoperability Report 1.0\", suiteLog='./suite.log' --timeout 15000",

template="@digitalbazaar/crypto-suite-report-template" would cause the reporter to require or import that package drawing report templates from it.