diff options
author | Aleksey Kladov <[email protected]> | 2020-10-06 14:17:16 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-10-06 14:17:16 +0100 |
commit | c32fb96c33f9d429a119f427c5d8f4933e81ca9b (patch) | |
tree | a5bf6042b3dfc0f46cc861e1d51d71d9211868c2 /xtask | |
parent | 87cb840a4e140a49946235823384694da58c2a5a (diff) |
Smoke test docs generation
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/tests/tidy.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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 | |||
@@ -38,6 +38,13 @@ fn check_code_formatting() { | |||
38 | } | 38 | } |
39 | 39 | ||
40 | #[test] | 40 | #[test] |
41 | fn smoke_test_docs_generation() { | ||
42 | // We don't commit docs to the repo, so we can just overwrite in tests. | ||
43 | codegen::generate_assists_docs(Mode::Overwrite).unwrap(); | ||
44 | codegen::generate_feature_docs(Mode::Overwrite).unwrap(); | ||
45 | } | ||
46 | |||
47 | #[test] | ||
41 | fn rust_files_are_tidy() { | 48 | fn rust_files_are_tidy() { |
42 | let mut tidy_docs = TidyDocs::default(); | 49 | let mut tidy_docs = TidyDocs::default(); |
43 | for path in rust_files(&project_root().join("crates")) { | 50 | for path in rust_files(&project_root().join("crates")) { |