We want to use https://github.com/aDotInTheVoid/jsondocckng which allows writing the tests in a seperate rust files, instread of the current jsondocck and check_missing_items.py
Reasons to do this
- Easier for new contributors: They don't need to learn how to use
JsonPath and @set... commands
- Easier for exising contributors: Common idioms (
"$.index[*][?(@.name=='...')]) can be converted to rust code to avoid duplication. Paths referenced repeatedly can be replaced with a let
- We can avoid the problems with quoting of the shlex/serde_json frankensteined value system that leads to things like
'"\"vectorcall\""'
Drawbacks
- We dont test the raw json, but instead the Rust Repr
- Unclear how to integrate into rustbuild in current from
- Existing tests need to be rewritten
Todo
@rustbot modify labels: +A-contributor-roadblock +A-testsuite +T-rustdoc +A-rustdoc-json +A-rustbuild
We want to use https://github.com/aDotInTheVoid/jsondocckng which allows writing the tests in a seperate rust files, instread of the current
jsondocckandcheck_missing_items.pyReasons to do this
JsonPathand@set... commands"$.index[*][?(@.name=='...')]) can be converted to rust code to avoid duplication. Paths referenced repeatedly can be replaced with a let'"\"vectorcall\""'Drawbacks
Todo
@rustbot modify labels: +A-contributor-roadblock +A-testsuite +T-rustdoc +A-rustdoc-json +A-rustbuild