You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this reporter in parallel has turned out to be difficult as the reporter relies on mutating mocha's test object with meta data the reporter uses. My proposal is to remove the meta-data and instead create a new javascript file required by the reporter and potentially mocha that contains information on how to format and display tests.
Create a new CLI option displayOptions=$PWD/tests/reportDisplay.js
This file contains a list of Suite titles that are in turn going to be sections in the conformance part of the report
Each entry in the reports Array should look like this:
exportdefault[{suite: 'Data Integrity - Ed25519Signature2020',labels: {column: 'Issuer',row: 'Test'},ids: {// these can be filled in laterrows: [],// these can be filled in later or supplied from implementationscolumns: []},template: 'matrix'}]
This then maps to a Suite formatted like this:
describe('Data Integrity - Ed25519Signature2020',function(){for(const[name,implementation]ofimplementations){describe(implementationName,asyncfunction(){it('MUST have this property',asyncfunction(){// ...stuff happens here})})}})
This removes the need for meta-data inside of the tests itself and separate test logic from display logic
If the reporter merges Suites from the display file by title then we can run multiple suites in a single loop or even have a single report run in multiple files aka parallel.
Other Goals:
Switch over passing in packages with a full set of templates instead of individual templates
Make the test stats their own template instead of being a part of body
The text was updated successfully, but these errors were encountered:
Running this reporter in parallel has turned out to be difficult as the reporter relies on mutating mocha's test object with meta data the reporter uses. My proposal is to remove the meta-data and instead create a new javascript file required by the reporter and potentially mocha that contains information on how to format and display tests.
displayOptions=$PWD/tests/reportDisplay.js
Suite
titles that are in turn going to be sections in the conformance part of the reportOther Goals:
The text was updated successfully, but these errors were encountered: