mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Make code generation
just work
Contributors don't need to learn about `cargo xtask codegen` if `cargo test` just does the right thing.
This commit is contained in:
parent
abb6b8f14c
commit
1eb61203b7
8 changed files with 42 additions and 50 deletions
|
@ -864,7 +864,7 @@ mod tests {
|
|||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn ensure_schema_in_package_json() {
|
||||
fn generate_package_json_config() {
|
||||
let s = Config::json_schema();
|
||||
let schema = format!("{:#}", s);
|
||||
let mut schema = schema
|
||||
|
@ -895,7 +895,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn schema_in_sync_with_docs() {
|
||||
fn generate_config_documentation() {
|
||||
let docs_path = project_root().join("docs/user/generated_config.adoc");
|
||||
let current = fs::read_to_string(&docs_path).unwrap();
|
||||
let expected = ConfigData::manual();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue