Open justinabrahms opened 5 months ago
I would love to see something like this. What issues are you seeing in the JS repo? Would we just need to update the test names to closer align with the spec names?
I also like this idea of detecting where a requirement is implemented in the SDKs. I'm unsure if there's going to be an easy way to standardize the annotations easily. I wonder if, specifically to communicate spec-compliance, we have something like a spec_compliance.json
or similar file that is up to date with the targeted spec version and requirement numbers. Each language could decide how much they want to automate publishing that artifact within the repo, but we can read that in as a standard format for documentation/reporting purposes.
// spec:4.1.2:This is the text of the normative section of the spec.
and then parse that out? May run afowl of long-lines, but we can likely handle that too.
Yes comments are probably the easiest way to start with it.
Building off of #254, I've started to put together a script to pull together the differences the SDKs have. In working on parsing the different repositories, I noticed that some tests are easier to parse than others. I'm reaching out to better understand what folks think the right approach is for addressing this.
The
spec_finder
utility does a few things:Do we complicate the
spec_finder
utility to better understand the semantics of the underlying languages? Or do we recommend some sort of easily-parsable convention like comments on each test? Or maybe we scrap this idea and have each language output their coverage to some known place that we can more easily deal with?These were the ones that were a bit difficult to parse
Janky first attempt
Code:
Result: