
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@cds-au/testdocs-cli
Advanced tools
Tools for managing the presentation of test case documentation for the Australian Consumer Data Right regime
The testdocs-cli can be used to validate and render test case documentation documented in JSON that is compliant with the CDR test documentation JSON schema.
This tool has been created by the Data Standards Body to support participants implementing of the technical standards developed for the Australian Consumer Data Right regime.
The goal of the testdocs-cli the corresonding testdocs library is to provide tooling for the documentation of tests so that CDR participants can test their implementations with confidence that they are conformant with the standards.
To install the testdocs command line tool (testdocs-cli
) you need to have npm installed. With npm installed run the following command:
npm install @cds-au/testdocs-cli -g
This will make the CLI available globally.
doc-schema
Print out the testdocs schema currently in use to stdout. This will be the full JSON schema file and allows for the schema to be reused in your own tools or workflow.
None
Options | Description |
---|---|
--version | Output only the version of the schema that the CLI is currently using |
testdocs-cli doc-schema
Output the current test doc schema to stdout
testdocs-cli doc-schema --version
Output the version of test doc schema to stdout
validate <filename>
Validate that the JSON file specified is a valid JSON file and also fully compliant with the current test documentation schema. Errors will be published to stderr and a non-zero response will be provided.
Argument | Description |
---|---|
<filename> | The path to the file (expected to be a valid JSON file) to be validated. |
None
testdocs-cli validate doc.json
Validate doc.json
and output any validation errors to stderr
generate <type> <src> <dst>
Read in the specified source and generate output according to the type specified. Can be used to generate human readable versions of the test documentation data in various formats.
Argument | Description |
---|---|
<type> | The type of the output to generate. Can be json , html or markdown . Note that the json mode converts a series of CSV files exported from Excel into JSON and is temporary until an editor capability is available. |
<src> | The source file or path to read in and generate the output from. For html and markdown the <src> is expected to be a single JSON file containing test documentation compliant with the current schema. For json the <src> is expected to be a path containing a series of CSV files that represent an export of the the test documentation from an Excel workbook. |
<dst> | The destination file for the generated output. The type will align to the type specified in the <type> argument. |
None
testdocs-cli json ./csvfiles/ ./doc.json
Convert a folder structure containing a series of CSV files each containing different aspects of the test documentation into a single JSON file containing test documentation aligned to the test doc schema. Note that schema compliance for the output is dependent on the validity of the data in the CSV files.
testdocs-cli html ./doc.json ./doc.html
Convert the documentation in doc.json
into standalone HTML and output to doc.html
. All CSS and JS will be inline in the resulting HTML file.
testdocs-cli markdown ./doc.json ./doc.md
Convert the documentation in doc.json
into Markdown and output to doc.md
. Note that some HTML statements will be included in the markdown so a markdown renderer that supports inline HTML is expected to be used to view the resulting output.
Enhancement and bug fix pull requests are welcome in accordance with the contribution policy for the repository.
For additional contribution please ensure that pull requests are fully tested and include updates to documentation.
To build the repository run the following scripts from a bash compliant command prompt or terminal window:
npm install
npm run sync-schema
npm run build
To publish the repository to npm (needs permission)
npm publish --access public
The following are a list of features that are intended but yet to be added to this capability (contributions welcome):
FAQs
Tools for managing the presentation of test case documentation for the Australian Consumer Data Right regime
The npm package @cds-au/testdocs-cli receives a total of 0 weekly downloads. As such, @cds-au/testdocs-cli popularity was classified as not popular.
We found that @cds-au/testdocs-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.