From c32fb96c33f9d429a119f427c5d8f4933e81ca9b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 6 Oct 2020 15:17:16 +0200 Subject: Smoke test docs generation --- xtask/tests/tidy.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xtask') diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index 02b3afc96..01f04a17c 100644 --- a/xtask/tests/tidy.rs +++ b/xtask/tests/tidy.rs @@ -37,6 +37,13 @@ fn check_code_formatting() { } } +#[test] +fn smoke_test_docs_generation() { + // We don't commit docs to the repo, so we can just overwrite in tests. + codegen::generate_assists_docs(Mode::Overwrite).unwrap(); + codegen::generate_feature_docs(Mode::Overwrite).unwrap(); +} + #[test] fn rust_files_are_tidy() { let mut tidy_docs = TidyDocs::default(); -- cgit v1.2.3