Skip to content

knox-networks/did-test-suite

 
 

Repository files navigation

W3C Logo DID Test Suite

Only Passing Include Breaking

This test suite performs interoperability tests on the W3C Decentralized Identifier specification and is maintained by the W3C DID Working Group.

Adding Your DID Implementation

There are three types of implementations that this test suite tests: DID Methods, DID Resolvers, and DID URL Dereferencers. In order to add your implementation to this test suite:

  1. Add your input file(s) to the implementations directory. For an example, see the example DID Method implementation (or any other file that looks closest to your implementation in the directory).

**For Knox- **https://github.com/knox-networks/did-test-suite/blob/main/packages/did-core-test-server/suites/implementations/did-knox.json Upon merge, test results will be updated automatically on https://knox-networks.github.io/did-test-suite/ Or this can be triggered via GHA https://github.com/knox-networks/did-test-suite/actions/workflows/ci-deploy-pages.yml

  1. Add your input file to all relevant default.js test suite configurations. For example, DID Methods should add themselves to the did-identifier, did-core-properties, did-production, and did-consumption suites. Resolver implementations should only be added to the did-resolution test suite. See the current list of implementations listed for did-core-properties for more information. Implementers might want to peruse the list of all the test suites for more detail.
  2. Run the test suite and make sure your implementation passes.
  3. Submit a pull request on this repository to add your implementation.

Adding and Modifying Tests

Use the standard fork, branch, and pull request workflow to propose changes to the test suite. Please make branch names informative—by including the issue or bug number for example.

Editorial changes that improve the readability of the spec or correct spelling or grammatical mistakes are welcome.

Please read CONTRIBUTING.md, about licensing contributions.

Code of Conduct

W3C functions under a code of conduct.

Getting Started

See the Test Server.

To generate a report, run:

npm i
npm run test-and-generate-report

If tests are failing

DID Working Group Repositories

About

W3C DID Test Suite and Implementation Report

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 96.1%
  • JavaScript 3.9%