diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-25 12:50:06 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-25 12:50:06 +0100 |
commit | c48b467eff0e18f3b8fa1b65a21abb19f800f56a (patch) | |
tree | 47d48171346d25e357df7b15c012447756cf9b0b /xtask/tests/tidy-tests/cli.rs | |
parent | 5f779f6c46f29c63483c0e2be732377b1b87e685 (diff) | |
parent | 0dd35ff2b2ceffdb926953fdacc7d30e1968047d (diff) |
Merge #2069
2069: auto-generate assists docs and tests r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/tests/tidy-tests/cli.rs')
-rw-r--r-- | xtask/tests/tidy-tests/cli.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xtask/tests/tidy-tests/cli.rs b/xtask/tests/tidy-tests/cli.rs index 543c7d7c4..573ffadbf 100644 --- a/xtask/tests/tidy-tests/cli.rs +++ b/xtask/tests/tidy-tests/cli.rs | |||
@@ -19,6 +19,13 @@ fn generated_tests_are_fresh() { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | #[test] | 21 | #[test] |
22 | fn generated_assists_are_fresh() { | ||
23 | if let Err(error) = codegen::generate_assists_docs(Mode::Verify) { | ||
24 | panic!("{}. Please update assists by running `cargo xtask codegen`", error); | ||
25 | } | ||
26 | } | ||
27 | |||
28 | #[test] | ||
22 | fn check_code_formatting() { | 29 | fn check_code_formatting() { |
23 | if let Err(error) = run_rustfmt(Mode::Verify) { | 30 | if let Err(error) = run_rustfmt(Mode::Verify) { |
24 | panic!("{}. Please format the code by running `cargo format`", error); | 31 | panic!("{}. Please format the code by running `cargo format`", error); |