diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-06 14:18:37 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-06 14:18:37 +0100 |
commit | 9507a01e9e76afca9f6f8d460089fc199703b820 (patch) | |
tree | a5bf6042b3dfc0f46cc861e1d51d71d9211868c2 /xtask | |
parent | 87cb840a4e140a49946235823384694da58c2a5a (diff) | |
parent | c32fb96c33f9d429a119f427c5d8f4933e81ca9b (diff) |
Merge #6149
6149: Smoke test docs generation r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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")) { |