w3c / did-test-suite

W3C DID Test Suite and Implementation Report

Home Page:https://w3c.github.io/did-test-suite/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scanning of implementation directory and test suites selection

shigeya opened this issue · comments

@msporny:

Just as an aside: @OR13 @shigeya @peacekeeper -- we really should make the default.js files scan the implementations directory and pull in files that contain certain content instead of having people list them by hand in default.js -- the majority of our merge conflicts are because of the default.js files. We probably shouldn't do the change now 'cause of all the PRs coming in... but perhaps when the dust settles a bit.

Originally posted by @msporny in #127 (comment)

If we want to implement this, each of the implementation JSON objects needs a property with the name supported_suites or suites which is an array of the name of the test suites the data supports.

If we want to implement this, each of the implementation JSON objects needs a property with the name supported_suites or suites which is an array of the name of the test suites the data supports.

OR, we could detect the type of implementation file it is... there are really only two: DID Methods and Resolvers, and each have their own special fields we could auto-detect. No need to put burden on implementers when we don't have to.

Imo, we ought to detect the type, and automatically build the collection from files in folders... least friction for developers.