Rustdoc has a ... not-very-comprensive test suite. cargo-semver-checks has much more extensive tests. It would be really nice if we could test that we don't accidentally regress the JSON output (or the other output for that matter; I suspect most breakage affects both backends).
I think the easiest way to do this is to add a new tests/rustdoc-semver-checks submodule with a dependency on https://github.com/obi1kenobi/cargo-semver-checks. Then in src/bootstrap/test.rs, we'll add a new test suite that runs cargo test on cargo-semver-checks using the in-tree version of rustdoc to make sure there's no incompatibilities.
I am not sure how this should deal with breaking changes to the JSON format - maybe we can use toolstate which allows the tests to be broken until semver-checks supports the new version?
cc @obi1kenobi @rust-lang/rustdoc
Rustdoc has a ... not-very-comprensive test suite. cargo-semver-checks has much more extensive tests. It would be really nice if we could test that we don't accidentally regress the JSON output (or the other output for that matter; I suspect most breakage affects both backends).
I think the easiest way to do this is to add a new
tests/rustdoc-semver-checkssubmodule with a dependency on https://github.com/obi1kenobi/cargo-semver-checks. Then insrc/bootstrap/test.rs, we'll add a new test suite that runscargo teston cargo-semver-checks using the in-tree version of rustdoc to make sure there's no incompatibilities.I am not sure how this should deal with breaking changes to the JSON format - maybe we can use toolstate which allows the tests to be broken until semver-checks supports the new version?
cc @obi1kenobi @rust-lang/rustdoc