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
To build and test the suite, run the following commands:
npm install
npm test
You can remove all generated test cases by running:
npm clean
A report will be generated to the reports directory after a successful run.
Implementations
Implementations are tested on two dimensions: support for defined types (JsonSchema and JsonSchemaCredential), and
support for specified JSON Schema versions (Draft-7, 2019-09, and 2020-12).
How Implementations Work
Implementations are run using docker compose. Each container is called once
per test case. The container is expected take the following inputs:
format - either JsonSchema or JsonSchemaCredential
schema - a path to the input schema file
credential - a path to the input credential file
output - a path to where the container will write an output
An example command for a container that takes the above inputs would be:
To add an implementation to the test suite, add a new entry to the implementations array in implementations.json.
The entry should have the following properties: name and specs, where specs is an object with the supported
JSON Schema versions as keys and an array of supported
VC JSON Schema Types as values.
Next, you'll need to add a new entry for the implementation in the docker-compose.yml
file. You may optionally add a directory to the implementations directory with the same name as the
implementation which houses the implementation's code.
About
Test suite for the VC JSON Schema specification in the W3C