Skip to content

Add JsonDocCk Tool for rustdoc-json#81063

Merged
bors merged 5 commits intorust-lang:masterfrom
CraftSpider:jsondocck
Jan 20, 2021
Merged

Add JsonDocCk Tool for rustdoc-json#81063
bors merged 5 commits intorust-lang:masterfrom
CraftSpider:jsondocck

Conversation

@CraftSpider
Copy link
Contributor

Implements a new test system for rustdoc JSON output, jsondocck. Modeled after htmldocck, this tool reads directives in the test file and checks them against the output. These directives use JSONPath, a pair to XPath for json. This obsoletes the old strict subset tool, allowing both finer-grained control of what is tested and better errors on failure.

Not sure on the changes to Cargo.lock, I can back that out if needed.

r? @jyn514

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustdoc-json Area: Rustdoc JSON backend A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants